Closed nhz2 closed 5 months ago
Here is an example that goes into an infinite loop:
julia> using TranscodingStreams julia> s = NoopStream(IOBuffer("abc")); julia> readbytes!(s, UInt8[], 1)
The issue is https://github.com/JuliaIO/TranscodingStreams.jl/blob/fc11ad72d115353cb29a7d080cd8976481993ad2/src/stream.jl#L415
if length(b) is 0 then the b stays the same size.
length(b)
b
Here is an example that goes into an infinite loop:
The issue is https://github.com/JuliaIO/TranscodingStreams.jl/blob/fc11ad72d115353cb29a7d080cd8976481993ad2/src/stream.jl#L415
if
length(b)
is 0 then theb
stays the same size.