[nss] Use seed corpus from Mozilla's repository. (#68)

This commit is contained in:
Max Moroz 2016-11-05 00:47:14 +01:00 committed by Mike Aizatsky
parent 9848e9e4fd
commit 13d8dfdc21
2 changed files with 8 additions and 0 deletions

View File

@ -20,5 +20,6 @@ RUN apt-get install -y make autoconf automake libtool mercurial zlib1g-dev
RUN hg clone https://hg.mozilla.org/projects/nspr nspr
RUN hg clone https://hg.mozilla.org/projects/nss nss
RUN git clone https://github.com/mozilla/nss-fuzzing-corpus.git nss-corpus
COPY build.sh fuzzers/* /src/

View File

@ -59,3 +59,10 @@ for fuzzer in $FUZZERS; do
/work/nss/lib/libnspr4.a /work/nss/lib/libplc4.a /work/nss/lib/libplds4.a \
/work/nss/lib/prlog2.o -o /out/$fuzzer $FUZZER_LDFLAGS
done
# Archive and copy to /out seed corpus if the build succeeded.
zip /work/nss/all_nss_seed_corpus.zip /src/nss-corpus/*/*
for fuzzer in $FUZZERS; do
cp /work/nss/all_nss_seed_corpus.zip /out/${fuzzer}_seed_corpus.zip
done