From: Yann Collet Date: Thu, 5 May 2016 23:51:31 +0000 (+0200) Subject: Fixed decoding corruption error with quad-symbols huffman on legacy decoders X-Git-Tag: v0.6.1^2~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8283a2f0aae3d8ecc5b90c42fae3166c36f0ae2b;p=thirdparty%2Fzstd.git Fixed decoding corruption error with quad-symbols huffman on legacy decoders --- diff --git a/lib/legacy/zstd_v03.c b/lib/legacy/zstd_v03.c index 32be1c8dd..f06b47fdc 100644 --- a/lib/legacy/zstd_v03.c +++ b/lib/legacy/zstd_v03.c @@ -991,7 +991,6 @@ extern "C" { ******************************************/ static size_t HUF_decompress4X2 (void* dst, size_t dstSize, const void* cSrc, size_t cSrcSize); /* single-symbol decoder */ static size_t HUF_decompress4X4 (void* dst, size_t dstSize, const void* cSrc, size_t cSrcSize); /* double-symbols decoder */ -static size_t HUF_decompress4X6 (void* dst, size_t dstSize, const void* cSrc, size_t cSrcSize); /* quad-symbols decoder */ #if defined (__cplusplus) @@ -2371,362 +2370,6 @@ static size_t HUF_decompress4X4 (void* dst, size_t dstSize, const void* cSrc, si } -/**********************************/ -/* quad-symbol decoding */ -/**********************************/ -typedef struct { BYTE nbBits; BYTE nbBytes; } HUF_DDescX6; -typedef union { BYTE byte[4]; U32 sequence; } HUF_DSeqX6; - -/* recursive, up to level 3; may benefit from