]> git.ipfire.org Git - thirdparty/zstd.git/commit
Fix dictionary loading bug causing an MSAN failure
authorNick Terrell <terrelln@fb.com>
Tue, 20 Dec 2016 18:47:52 +0000 (10:47 -0800)
committerNick Terrell <terrelln@fb.com>
Tue, 20 Dec 2016 18:47:52 +0000 (10:47 -0800)
commit8157a4c3ccc4d9b0de3f712a7eb752d49be4cf28
tree044cce9fe31137ddc48277faa462cac0d92921f0
parentd564faa3c6222c9c485f83160c3f2be3b4a82495
Fix dictionary loading bug causing an MSAN failure

Offset rep codes must be in the range `[1, dictSize)`.
Fix dictionary loading to reject `0` as a offset rep code.
lib/compress/zstd_compress.c
lib/decompress/zstd_decompress.c
lib/legacy/zstd_v07.c