mirror of https://github.com/google/oss-fuzz.git
Replace unaccessible mirror with an official github for libpng and (#370)
add seed corpus.
This commit is contained in:
parent
fbaca8e827
commit
aece833ba7
|
@ -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/
|
||||
|
|
|
@ -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/
|
||||
|
|
Loading…
Reference in New Issue