]> git.ipfire.org Git - thirdparty/zstd.git/commit
[zstd] Fix decompression edge case
authorNick Terrell <terrelln@fb.com>
Wed, 23 May 2018 19:16:00 +0000 (12:16 -0700)
committerNick Terrell <terrelln@fb.com>
Wed, 23 May 2018 19:16:00 +0000 (12:16 -0700)
commita97e9a627adf18b0efc9f2c4aeeac25b2a2af730
tree94bccc41e884640d0257b041dd6b4400f44d5527
parent27dc078aa6787328a95dcda4a3faf565dffd7aa3
[zstd] Fix decompression edge case

This edge case is only possible with the new optimal encoding selector,
since before zstd would always choose `set_basic` for small numbers of
sequences.

Fix `FSE_readNCount()` to support buffers < 4 bytes.

Credit to OSS-Fuzz
lib/common/entropy_common.c