]> git.ipfire.org Git - thirdparty/zstd.git/commit
[fuzzer] Sometimes fuzz with one less output byte
authorNick Terrell <terrelln@fb.com>
Tue, 9 Apr 2019 23:47:59 +0000 (16:47 -0700)
committerNick Terrell <terrelln@fb.com>
Tue, 9 Apr 2019 23:47:59 +0000 (16:47 -0700)
commitc5d70b7dbb0a74272a5541d9e6ab523b3df0b31b
treed86b92f5916fc3ed2f581e2fb99bb785e87d6600
parent48a6427d22f290157b8acc3f7c03c0f762a768be
[fuzzer] Sometimes fuzz with one less output byte

Zstd compression sometimes does different stuff when it has at least
`ZSTD_compressBound()` output bytes, or not. Half of the time fuzz with
`ZSTD_compressBound() - 1` output bytes. Ensure that we have at least
one byte of overhead by disabling either the dictionary ID or checksum.
tests/fuzz/dictionary_round_trip.c
tests/fuzz/simple_round_trip.c