]> git.ipfire.org Git - thirdparty/zstd.git/commit
fixed #304
authorYann Collet <cyan@fb.com>
Thu, 11 Jan 2018 19:16:32 +0000 (11:16 -0800)
committerYann Collet <cyan@fb.com>
Thu, 11 Jan 2018 19:16:32 +0000 (11:16 -0800)
commite8093dde09a737d39184827598fc1b67feecf241
treea64a4ad62ed20b9f44cf5995d148b19e6d96cb35
parent218e9fe0fc25cc8bfd362d0086e23d070fbf9f5c
fixed #304

Pathological samples may result in literal section being incompressible.
This case is now detected,
and literal distribution is replaced by one that can be written into the dictionary.
lib/common/huf.h
lib/compress/huf_compress.c
lib/dictBuilder/zdict.c
tests/fuzzer.c