]> git.ipfire.org Git - thirdparty/zstd.git/commit
Fix 2 bugs in dictionary loading 1864/head
authorNick Terrell <terrelln@fb.com>
Fri, 1 Nov 2019 22:33:39 +0000 (15:33 -0700)
committerNick Terrell <terrelln@fb.com>
Fri, 1 Nov 2019 23:52:07 +0000 (16:52 -0700)
commit60205fec02ce1ba3cd4d7e828c843f8003fc48ae
tree13b25001a81401179a1e1281a4a384f21b49672f
parent75e7c0d107e17b6ce7392d82aa8e9122a826d6f2
Fix 2 bugs in dictionary loading

* Silently skip dictionaries less than 8 bytes, unless using `ZSTD_dct_fullDict`.
  This changes the compressor, which silently skips dictionaries <= 8 bytes.
* Allow repcodes that are equal to the dictionary content size, since it is in bounds.
lib/compress/zstd_compress.c
lib/decompress/zstd_decompress.c
tests/fuzz/Makefile