aboutsummaryrefslogtreecommitdiffhomepage
path: root/projects/wuffs
diff options
context:
space:
mode:
authorGravatar Nigel Tao <nigeltao@golang.org>2020-02-28 00:50:49 +1100
committerGravatar GitHub <noreply@github.com>2020-02-27 05:50:49 -0800
commitc24902ff9cf4c3146ffcd6ea3ef24baf58e7ba4f (patch)
tree2598b3c9bdfc9afc106e28f6d5237488440e953a /projects/wuffs
parente3de965fa9ca3e8b80ef5cfbedeb3ce8ec193503 (diff)
[wuffs] Add more seed corpora (#3436)
This commit is the first half of a multi-repository change. The second half will touch https://github.com/google/wuffs/tree/master/fuzz/c/std
Diffstat (limited to 'projects/wuffs')
-rw-r--r--projects/wuffs/Dockerfile26
1 files changed, 26 insertions, 0 deletions
diff --git a/projects/wuffs/Dockerfile b/projects/wuffs/Dockerfile
index 0af0c21f..b6a71649 100644
--- a/projects/wuffs/Dockerfile
+++ b/projects/wuffs/Dockerfile
@@ -16,6 +16,32 @@
FROM gcr.io/oss-fuzz-base/base-builder
MAINTAINER nigeltao@golang.org
+RUN apt-get update && apt-get install -y wget
+
+# Get Wuffs' first-party code.
+
RUN git clone --depth 1 https://github.com/google/wuffs.git
+
+# Get third-party test corpora.
+
+RUN git clone --depth 1 https://github.com/nst/JSONTestSuite.git
+
+RUN wget -O bmpsuite.zip https://entropymine.com/jason/bmpsuite/releases/bmpsuite-2.6.zip
+RUN mkdir bmpsuite_corpus
+RUN unzip -j bmpsuite.zip -d bmpsuite_corpus
+RUN rm bmpsuite.zip
+
+RUN wget -O pngsuite.tgz http://www.schaik.com/pngsuite/PngSuite-2017jul19.tgz
+RUN mkdir pngsuite_corpus
+RUN tar xf pngsuite.tgz --one-top-level=pngsuite_corpus
+RUN rm pngsuite.tgz
+
+RUN wget -O rapidjson.zip "https://github.com/guidovranken/rapidjson-fuzzers/blob/master/fuzzer_seed_corpus.zip?raw=true"
+RUN mkdir rapidjson_corpus
+RUN unzip -j rapidjson.zip -d rapidjson_corpus
+RUN rm rapidjson.zip
+
+# Finish.
+
WORKDIR wuffs
COPY build.sh $SRC/