From c24902ff9cf4c3146ffcd6ea3ef24baf58e7ba4f Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Fri, 28 Feb 2020 00:50:49 +1100 Subject: [PATCH] [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 --- projects/wuffs/Dockerfile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/projects/wuffs/Dockerfile b/projects/wuffs/Dockerfile index 0af0c21f4..b6a716496 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/