Files
wuffs/fuzz/c/std/seed_corpora.txt
T
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

35 lines
1.6 KiB
Plaintext

# This file maps file formats to file extensions, and specifically, to a set of
# files used to seed fuzz testing.
#
# The map is often trivial. For example, the "gif" implementation is tested on
# files matching "*.gif". However, for some formats, the format name and the
# conventional file extension differ, such as "gzip" and "gz". There may also
# be multiple file extensions: both "jpeg" and "jpg" are widely used. First
# party test data will usually use "jpeg", but third party test data, such as a
# web crawl sample, may use "jpg".
#
# This file is not used by Wuffs per se, but it is used by the "projects/wuffs"
# directory in the https://github.com/google/oss-fuzz repository.
#
# Externally sourced seed files (whose paths start with "../") are fetched by
# 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*
bzip2: test/data/*.bz2
cbor: test/data/*.cbor
gif: test/data/*.gif test/data/artificial-gif/*.gif
gzip: test/data/*.gz
jpeg: test/data/*.jpeg ../libjpeg_turbo_corpus/*.jpg
json: test/data/*.json ../simdjson_corpus/* ../JSONTestSuite/test_*/*.json
png: test/data/*.png test/data/artificial-png/*.png ../pngsuite_corpus/*.png
targa: test/data/*.tga
wbmp: test/data/*.wbmp
webp: test/data/*.webp ../webp_corpus/*.webp
xz: test/data/*.xz ../xz_corpus/*.xz
zlib: test/data/*.zlib
# Wuffs' pixel_swizzler doesn't process any particular file format. We just
# want some random inputs and bricks* is as good a seed corpus as any.
pixel_swizzler: test/data/bricks*