mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 16:47:28 +01:00
Add "./build-{example,fuzz}.sh" instructions
This commit is contained in:
1 parent
418847fe94
commit
48e457204f
2 files changed
+32
No files matched your search
@@ -1,3 +1,5 @@
|
||||
# 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.
|
||||
@@ -11,3 +13,17 @@ 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.*
|
||||
Reference in new issue
Block a user