mirror of https://github.com/google/oss-fuzz.git
[nss] Use seed corpus from Mozilla's repository. (#68)
This commit is contained in:
parent
9848e9e4fd
commit
13d8dfdc21
|
@ -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/
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue