19 Commits
Author SHA1 Message Date
Claude 39f68cb02b 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.
2026-10-27 09:20:56 +00:00
Claude b9be8feaee std/brotli: large-window mode, custom dictionaries and a fuzzer
Completes the decoder's feature set relative to libbrotlidec v1.2.1:

- QUIRK_LARGE_WINDOW mirrors BROTLI_DECODER_PARAM_LARGE_WINDOW: the
  large-window WBITS escape, window bits up to 30, the 544-symbol distance
  alphabet and 64-bit distance arithmetic, with workbuf_len growing to
  (1 << 30) + 542 when the quirk is set.
- decoder.add_dictionary! mirrors BrotliDecoderAttachDictionary for raw
  (LZ77 prefix) and serialized shared dictionaries: compound-dictionary
  distance mapping, the shared-dictionary parser (custom word lists,
  transform lists including the SHIFT transforms, context-dependent
  dictionary selection, prefix dictionaries) and all of its validation.
  Wuffs structs cannot hold slices, so the dictionary bytes are copied
  into the front of the caller's workbuf; the layout is documented in
  the README. Serialized dictionaries are accepted as in a
  BROTLI_EXPERIMENTAL build of libbrotli.
- fuzz/c/std/brotli_fuzzer.c, exercising the quirk, dictionaries and
  random I/O limits.

Tests: new golden vectors for large windows (including a 17 MiB
far-distance stream generated in the test), raw and serialized
dictionaries, nine more malformed inputs, and mimic comparisons that
attach the same dictionaries to libbrotlidec. Differential runs over
2.7 million mutated large-window and dictionary streams found no
divergence from libbrotlidec.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011NoosQNe7DKWnqDCBeqw1p
2026-10-26 23:45:06 +00:00
Nigel Tao 5db6a08b6a fuzz: add webp fuzzer 2026-05-05 14:08:26 +10:00
Nigel Tao d662ef5484 fuzz: remove rapidjson_corpus
https://github.com/guidovranken/rapidjson-fuzzers has disappeared.

See https://issues.oss-fuzz.com/issues/380676571
2024-11-27 18:26:48 +11:00
Nigel Tao 85af5a4bed std/tga: rename to std/targa 2024-09-08 09:00:10 +10:00
Nigel Tao caa7711b30 fuzz: fix seed_corpora xzsuite_corpus dir name
Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=65668
2024-01-11 08:57:00 +11:00
Nigel Tao 0719c911f6 fuzz: add xz_fuzzer 2024-01-07 17:34:15 +11:00
Nigel Tao 382303a99d fuzz: add jpeg_fuzzer.c
Updates #42
2023-05-15 12:22:26 +10:00
Nigel Tao cda8b1950a Add fuzz/c/std/bzip2_fuzzer.c 2022-05-18 00:15:40 +10:00
Nigel Tao 6d35660651 Add fuzz/c/std/tga_fuzzer.c
Updates #67
2022-01-15 14:53:41 +11:00
Nigel Tao 010e0a69f4 Fix fuzz seed_corpora for test filename rename
Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=41167
2021-11-20 17:58:08 +11:00
Nigel Tao 41bfcabd3a Add fuzz/c/std/pixel_swizzler_fuzzer.c 2021-03-22 14:02:39 +11:00
Nigel Tao 28ef6a7862 Add fuzz/c/std/cbor_fuzzer.c 2020-08-10 22:29:08 +10:00
Nigel Tao c510bc0c91 Roll forward 6a85e9a6
6a85e9a6a9 rolled back
a4527c359a "Update seed_corpora.txt".

The oss-fuzz build should be fixed by:
https://github.com/google/oss-fuzz/pull/3763
2020-05-06 14:22:51 +10:00
Nigel Tao 6a85e9a6a9 Roll back a4527c35
a4527c359a is "Update seed_corpora.txt".
This broke the oss-fuzz build:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=22035
2020-05-06 10:42:56 +10:00
Muhammad Aldo Firmansyah a4527c359a Update seed_corpora.txt
Add more json corpus from simdjson_fuzz repo
2020-05-01 11:05:32 +07:00
Nigel Tao 21682f403f Add fuzz/c/std/json_fuzzer.c 2020-03-01 12:01:42 +11:00
Nigel Tao bcbad690a4 Add test/data/artificial to seed_corpora.txt 2019-02-16 09:34:40 +11:00
Nigel Tao b6cc2d5e2d Add fuzz/c/std/seed_corpora.txt 2018-04-22 13:02:22 +10:00