From b6cc2d5e2dcdb261c444029ecba73f9ef141fd96 Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Sun, 22 Apr 2018 13:02:22 +1000 Subject: [PATCH] Add fuzz/c/std/seed_corpora.txt --- fuzz/c/std/README.md | 3 ++- fuzz/c/std/seed_corpora.txt | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 fuzz/c/std/seed_corpora.txt diff --git a/fuzz/c/std/README.md b/fuzz/c/std/README.md index 826f0038..eb0481f0 100644 --- a/fuzz/c/std/README.md +++ b/fuzz/c/std/README.md @@ -9,4 +9,5 @@ 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. +`WUFFS_CONFIG__FUZZLIB_MAIN` in the C++ code for more details, and in +`seed_corpora.txt` for suggested test data. diff --git a/fuzz/c/std/seed_corpora.txt b/fuzz/c/std/seed_corpora.txt new file mode 100644 index 00000000..809e9fd2 --- /dev/null +++ b/fuzz/c/std/seed_corpora.txt @@ -0,0 +1,16 @@ +# 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. + +gif: test/data/*.gif +gzip: test/data/*.gz +zlib: test/data/*.zlib