Replace unaccessible mirror with an official github for libpng and (#370)

add seed corpus.
This commit is contained in:
Abhishek Arya 2017-02-08 22:28:38 -08:00 committed by GitHub
parent fbaca8e827
commit aece833ba7
2 changed files with 5 additions and 2 deletions

View File

@ -18,6 +18,6 @@ FROM ossfuzz/base-builder
MAINTAINER mmoroz@chromium.org
RUN apt-get install -y make autoconf automake libtool zlib1g-dev
RUN git clone --depth 1 git://git.code.sf.net/p/libpng/code libpng
RUN git clone --depth 1 https://github.com/glennrp/libpng.git
WORKDIR libpng
COPY build.sh libpng_read_fuzzer.* png.dict $SRC/

View File

@ -26,9 +26,12 @@ autoreconf -f -i
make -j$(nproc) clean
make -j$(nproc) all
# build libpng_read_fuzzer
# build libpng_read_fuzzer.
$CXX $CXXFLAGS -std=c++11 -I. -lz \
$SRC/libpng_read_fuzzer.cc -o $OUT/libpng_read_fuzzer \
-lFuzzingEngine .libs/libpng16.a
# add seed corpus.
find $SRC/libpng -name "*.png" | xargs zip $OUT/libpng_read_fuzzer_seed_corpus.zip
cp $SRC/*.dict $SRC/*.options $OUT/