[libvpx] Add zip file for fuzzer seed file (#2025)

Modify build.sh to copy file to output for processing
This commit is contained in:
Hien Ho 2018-12-11 15:51:40 -08:00 committed by jonathanmetzman
parent 834c12dc13
commit 47a3c6425b
2 changed files with 2 additions and 1 deletions

View File

@ -18,5 +18,6 @@ FROM gcr.io/oss-fuzz-base/base-builder
MAINTAINER jzern@google.com
RUN apt-get update && apt-get install -y yasm wget gcc
RUN git clone https://chromium.googlesource.com/webm/libvpx
ADD https://storage.googleapis.com/downloads.webmproject.org/test_data/fuzzer/vpx_fuzzer_seed_corpus.zip $SRC/
COPY build.sh vpx_dec_fuzzer.dict $SRC/
WORKDIR libvpx

View File

@ -54,6 +54,6 @@ for decoder in "${fuzzer_decoders[@]}"; do
$SRC/libvpx/examples/${fuzzer_src_name}.cc -o $OUT/${fuzzer_name} \
${build_dir}/libvpx.a ${build_dir}/tools_common.c.o \
-Wl,--end-group
cp $SRC/vpx_fuzzer_seed_corpus.zip $OUT/${fuzzer_name}_seed_corpus.zip
cp $SRC/vpx_dec_fuzzer.dict $OUT/${fuzzer_name}.dict
done