fuzz/c/std: add an encoder round trip to the brotli fuzzer

The fuzzer also encodes its input, with encoder parameters (quality, lgwin,
large window, mode, lgblock, literal context modeling, size hint, npostfix,
ndirect, a raw dictionary), chunking, flushes, metadata blocks and dst limits
derived from the input's hash, and checks that decoding gives the input back.
Add plain text seeds.
This commit is contained in:
Claude committed 2026-10-27 09:20:56 +00:00
1 parent 2241af92c1
commit 39f68cb02b
2 files changed
+263 -4

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@
# https://github.com/google/oss-fuzz/blob/master/projects/wuffs/Dockerfile
bmp: test/data/*.bmp ../bmpsuite_corpus/*.bmp
brotli: test/data/brotli/*.br test/data/brotli/*.compressed*
brotli: test/data/brotli/*.br test/data/brotli/*.compressed* test/data/brotli/*.txt test/data/*.txt
bzip2: test/data/*.bz2
cbor: test/data/*.cbor
gif: test/data/*.gif test/data/artificial-gif/*.gif