Files
wuffs/fuzz/c/std
Nigel Tao 74a6ea2fcd all: relicense from Apache2 to dual Apache2/MIT
The LICENSE has changed from a single license (Apache2) to a dual
license (Apache2 or MIT, at your option).

If you've previously used Wuffs under the Apache2 license, you are able
to keep doing so. No further action required by you.

The two files listed below (previous releases) are exceptions, as they
are older snapshots, frozen in time. Their license has not changed:
release/c/wuffs-v0.2.c
release/c/wuffs-v0.3.c

Every name in the AUTHORS file, other than Google Inc., has signed
Google's CLA (Contributor License Agreement).
2023-10-06 10:00:59 +11:00
..
2023-05-15 12:22:26 +10: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.*