]> git.ipfire.org Git - thirdparty/zstd.git/commit
[fuzz] Add determinism fuzzing to simple & dictionary round trip 2648/head
authorNick Terrell <terrelln@fb.com>
Thu, 13 May 2021 23:16:47 +0000 (16:16 -0700)
committerNick Terrell <terrelln@fb.com>
Fri, 14 May 2021 00:05:59 +0000 (17:05 -0700)
commit725c5e4e381966e2349712ed5f673c157fcbe27b
treed7a6d9df9e598e83f637d8b1d1f1a5f54ac88154
parent03c411129909eac5386b294b058a3f4c1f633315
[fuzz] Add determinism fuzzing to simple & dictionary round trip

Compress the input twice in the `simple_round_trip` and
`dictionary_round_trip` fuzzers with exactly the same parameters, but
reusing the context. Then ensure that the compressed output is
identical.
tests/fuzz/dictionary_round_trip.c
tests/fuzz/fuzz_data_producer.c
tests/fuzz/fuzz_data_producer.h
tests/fuzz/simple_round_trip.c