zstd/tests/golden-decompression
Yann Collet 3732a08f5b fixed decoder behavior when nbSeqs==0 is encoded using 2 bytes
The sequence section starts with a number, which tells how sequences are present in the section.
If this number if 0, the section automatically ends.

The number 0 can be represented using the 1 byte or the 2 bytes formats.
That's because the 2-bytes formats fully overlaps the 1 byte format.

However, when 0 is represented using the 2-bytes format,
the decoder was expecting the sequence section to continue,
and was looking for FSE tables, which is incorrect.

Fixed this behavior, in both the reference decoder and the educational behavior.

In practice, this behavior never happens,
because the encoder will always select the 1-byte format to represent 0,
since this is more efficient.

Completed the fix with a new golden sample for tests,
a clarification of the specification,
and a decoder errata paragraph.
2023-06-05 16:03:00 -07:00
..
block-128k.zst added golden file for the new decompressor erratum 2023-04-19 00:24:35 -07:00
empty-block.zst Fix empty-block.zst golden decompression file 2023-02-08 14:11:22 -08:00
rle-first-block.zst Changing test file directory names to be more descriptive 2019-09-09 12:08:33 -07:00
zeroSeq_2B.zst fixed decoder behavior when nbSeqs==0 is encoded using 2 bytes 2023-06-05 16:03:00 -07:00