[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
This commit is contained in:
Nigel Tao 2020-02-28 00:50:49 +11:00 committed by GitHub
parent e3de965fa9
commit c24902ff9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 26 additions and 0 deletions

View File

@ -16,6 +16,32 @@
FROM gcr.io/oss-fuzz-base/base-builder FROM gcr.io/oss-fuzz-base/base-builder
MAINTAINER nigeltao@golang.org 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 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 WORKDIR wuffs
COPY build.sh $SRC/ COPY build.sh $SRC/