Skip to content

spec: Does Block_Maximum_Size apply for RAW/RLE blocks? #3072

@klauspost

Description

@klauspost

Describe the bug

While fuzz testing my Go port, I came across this input that I can decompress, but cli cannot.

The input has an RLE block of 1572321 bytes. The cli fails with Destination buffer is too small and extended error is check regenSize > dstCapacity failed, returning ERROR(dstSize_tooSmall).

Reading spec I want to confirm my (new) reading is correct;

Does the Block_Size is limited by Block_Maximum_Size (see below) mean that no matter the block type, the limit of Window Size/128KB applies? I kind of read/assumed that other types could use up to the 21 bits available.

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