zstd/lib/legacy
Nick Terrell e6edcfa795 [legacy] Fix bug in zstd-0.5 decoder
The match length and literal length extra bytes could either
by 2 bytes or 3 bytes in version 0.5. All earlier verions were
always 3 bytes, and later version didn't have dumps.

The bug, introduced by commit 0fd322f812,
was triggered when the last dump was a 2-byte dump, because we didn't
separate that case from a 3-byte dump, and thought we were over-reading.

I've tested this fix with every zstd version < 1.0.0 on the buggy file,
and we are now always successfully decompressing with the right
checksum.

Fixes #1693.
2019-07-22 13:05:09 -07:00
..
zstd_legacy.h [legacy] Return the right error code 2019-04-17 11:34:52 -07:00
zstd_v01.c [legacy] Fix ZSTDv0*_decodeSequence() 2019-04-19 11:34:52 -07:00
zstd_v01.h Fix typo in legacy documentation 2019-03-19 01:44:08 -07:00
zstd_v02.c [legacy] Fix ZSTDv0*_decodeSequence() 2019-04-19 11:34:52 -07:00
zstd_v02.h Fix typo in legacy documentation 2019-03-19 01:44:08 -07:00
zstd_v03.c [legacy] Fix ZSTDv0*_decodeSequence() 2019-04-19 11:34:52 -07:00
zstd_v03.h Fix typo in legacy documentation 2019-03-19 01:44:08 -07:00
zstd_v04.c [legacy] Fix ZSTDv0*_decodeSequence() 2019-04-19 11:34:52 -07:00
zstd_v04.h Fix typo in legacy documentation 2019-03-19 01:44:08 -07:00
zstd_v05.c [legacy] Fix bug in zstd-0.5 decoder 2019-07-22 13:05:09 -07:00
zstd_v05.h Fix typo in legacy documentation 2019-03-19 01:44:08 -07:00
zstd_v06.c [legacy] Fix bug in ZSTD_decodeSeqHeaders() 2019-04-18 13:41:10 -07:00
zstd_v06.h Fix typo in legacy documentation 2019-03-19 01:44:08 -07:00
zstd_v07.c [legacy] Fix bug in ZSTD_decodeSeqHeaders() 2019-04-18 13:41:10 -07:00
zstd_v07.h Fix typo in legacy documentation 2019-03-19 01:44:08 -07:00