Skip to content

Infinite loop in readbytes!(s, UInt8[], 1) #193

@nhz2

Description

@nhz2

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

resize!(b, min(length(b) * 2, nb))

if length(b) is 0 then the b stays the same size.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions