Files
wuffs/fuzz/c/std
Nigel Tao 5ec14737f3 pixconv: allow swizzle from PIXEL_FORMAT__Y_16LE
Binary size, before:
142648 gen/lib/c/clang-dynamic/wuffs-base-pixconv.lo
142648 gen/lib/c/clang-static/wuffs-base-pixconv.o
243368 gen/lib/c/gcc-dynamic/wuffs-base-pixconv.lo
243240 gen/lib/c/gcc-static/wuffs-base-pixconv.o

After:
145472 gen/lib/c/clang-dynamic/wuffs-base-pixconv.lo
145472 gen/lib/c/clang-static/wuffs-base-pixconv.o
247720 gen/lib/c/gcc-dynamic/wuffs-base-pixconv.lo
247688 gen/lib/c/gcc-static/wuffs-base-pixconv.o
2025-06-10 11:33:08 +10:00
..
2024-01-07 17:34:15 +11:00
2024-08-05 00:12:15 +10:00
2024-11-27 18:26:48 +11:00
2024-09-08 09:00:10 +10:00
2024-01-07 17:34:15 +11:00

Wuffs' Fuzzer Programs

This directory contains multiple programs to fuzz Wuffs' implementations of various codecs. For example, gif_fuzzer.c is a program to fuzz Wuffs' GIF implementation.

They are typically run indirectly, by a fuzzing framework such as OSS-Fuzz. That repository's projects/wuffs directory contains the complementary configuration for this directory's code.

When working on these files, it is possible to run them directly on an explicit test suite, in order to speed up the edit-compile-run cycle. Look for WUFFS_CONFIG__FUZZLIB_MAIN for more details, and in seed_corpora.txt for suggested test data.

Building

Running build-fuzz.sh from the top level directory will build all of the fuzzers. To check out and build just one, such as json_fuzzer:

git clone https://github.com/google/wuffs.git
cd wuffs
./build-fuzz.sh fuzz/c/std/json_fuzzer.cc

When re-building, you only need the last of those three lines. To run it:

gen/bin/fuzz-json test/data/json-things.*