[ossfuzz] Improve the fuzzers
authorNick Terrell <terrelln@fb.com>
Sat, 13 Jul 2019 02:27:00 +0000 (19:27 -0700)
committerNick Terrell <terrelln@fb.com>
Mon, 15 Jul 2019 19:22:04 +0000 (12:22 -0700)
commit3c40db8d258716b9efcfb46fa6dc29de6e43e616
tree7fd1d48f6195dfde2c6475fe035a0061b948e9c3
parent725cb0aafdf78b550c52618fe5cea1fadd278881
[ossfuzz] Improve the fuzzers

* Run more decompression variants
* Round trip the compression fuzzer and do partial decompression as well
* Add a compression fuzzer that compresses into a smaller output buffer
  and test the destSize variant

These fuzzers caught 2 bugs that were fixed in the previous commit.
* Input buffer over-read in partial decompress
* Partial decompress fails if output size is 0
ossfuzz/Makefile
ossfuzz/compress_fuzzer.c
ossfuzz/decompress_fuzzer.c
ossfuzz/fuzz.h [new file with mode: 0644]
ossfuzz/fuzz_helpers.h [new file with mode: 0644]
ossfuzz/round_trip_fuzzer.c [new file with mode: 0644]
ossfuzz/standaloneengine.c
ossfuzz/testinput.h [deleted file]