Skip to content

Commit

Permalink
[libavc, libhevc, libmpeg2] Add seed corpus (google#2912)
Browse files Browse the repository at this point in the history
Add seed corpus for libavc, libhevc and libmpeg2 fuzz targets
  • Loading branch information
harishdm authored and inferno-chromium committed Oct 2, 2019
1 parent 74794f0 commit fe3673c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions projects/libavc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ FROM gcr.io/oss-fuzz-base/base-builder
MAINTAINER [email protected]
RUN apt-get update && apt-get install -y wget cmake
RUN git clone https://android.googlesource.com/platform/external/libavc
ADD https://storage.googleapis.com/android_media/external/libavc/fuzzer/avc_dec_fuzzer_seed_corpus.zip $SRC/
COPY build.sh $SRC/
WORKDIR libavc
1 change: 1 addition & 0 deletions projects/libavc/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ $CXX $CXXFLAGS -std=c++11 \
${build_dir}/libavcdec.a \
-Wl,--end-group

cp $SRC/avc_dec_fuzzer_seed_corpus.zip $OUT/avc_dec_fuzzer_seed_corpus.zip
cp $SRC/libavc/fuzzer/avc_dec_fuzzer.dict $OUT/avcdec_fuzzer.dict
1 change: 1 addition & 0 deletions projects/libhevc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ FROM gcr.io/oss-fuzz-base/base-builder
MAINTAINER [email protected]
RUN apt-get update && apt-get install -y wget cmake
RUN git clone https://android.googlesource.com/platform/external/libhevc
ADD https://storage.googleapis.com/android_media/external/libhevc/fuzzer/hevc_dec_fuzzer_seed_corpus.zip $SRC/
COPY build.sh $SRC/
WORKDIR libhevc
1 change: 1 addition & 0 deletions projects/libhevc/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ $SRC/libhevc/fuzzer/hevc_dec_fuzzer.cpp -o $OUT/hevc_dec_fuzzer \
${build_dir}/libhevcdec.a \
-Wl,--end-group

cp $SRC/hevc_dec_fuzzer_seed_corpus.zip $OUT/hevc_dec_fuzzer_seed_corpus.zip
cp $SRC/libhevc/fuzzer/hevc_dec_fuzzer.dict $OUT/hevc_dec_fuzzer.dict
1 change: 1 addition & 0 deletions projects/libmpeg2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ FROM gcr.io/oss-fuzz-base/base-builder
MAINTAINER [email protected]
RUN apt-get update && apt-get install -y wget cmake
RUN git clone https://android.googlesource.com/platform/external/libmpeg2
ADD https://storage.googleapis.com/android_media/external/libmpeg2/fuzzer/mpeg2_dec_fuzzer_seed_corpus.zip $SRC/
COPY build.sh $SRC/
WORKDIR libmpeg2
1 change: 1 addition & 0 deletions projects/libmpeg2/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ $SRC/libmpeg2/fuzzer/mpeg2_dec_fuzzer.cpp -o $OUT/mpeg2_dec_fuzzer \
${build_dir}/libmpeg2dec.a \
-Wl,--end-group

cp $SRC/mpeg2_dec_fuzzer_seed_corpus.zip $OUT/mpeg2_dec_fuzzer_seed_corpus.zip
cp $SRC/libmpeg2/fuzzer/mpeg2_dec_fuzzer.dict $OUT/mpeg2_dec_fuzzer.dict

0 comments on commit fe3673c

Please sign in to comment.