Skip to content

State of using zero-length arrays for Reader #385

@wooffie

Description

@wooffie

If we pass empty slice we will get infinite loop:

for len(b) < 4<<10 {

Also we can have zero div error:

c.offset = (c.offset + l) % m

Maybe we should restrict assign empty buffers for Reader?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions