Add seed corpus for woff2, add missing options for other fuzzer. (#439)

* Add seed corpus for woff2, add missing options for other fuzzer.

* Add seed corpus.

* Switch from seed corpus archive to a folder with files.
This commit is contained in:
Abhishek Arya 2017-03-06 12:37:58 -08:00 committed by GitHub
parent ec444de5d2
commit 7643d95314
13 changed files with 7 additions and 2 deletions

View File

@ -20,4 +20,5 @@ RUN apt-get install -y make autoconf automake libtool
RUN git clone --depth 1 --recursive https://github.com/google/woff2
WORKDIR woff2
COPY build.sh convert_woff2ttf_fuzzer.* $SRC/
COPY build.sh *.options $SRC/
COPY corpus $SRC/corpus

View File

@ -28,8 +28,10 @@ make -j$(nproc) CC="$CC $CFLAGS" CXX="$CXX $CXXFLAGS" CANONICAL_PREFIXES= all \
# Build fuzzers
for fuzzer_archive in $(ls src/*fuzzer*.a); do
fuzzer_name=$(basename ${fuzzer_archive%.a})
$CXX $CXXFLAGS -lFuzzingEngine $fuzzer_archive \
-o $OUT/$(basename ${fuzzer_archive%.a})
-o $OUT/$fuzzer_name
zip -q $OUT/${fuzzer_name}_seed_corpus.zip $SRC/corpus/*
done
cp $SRC/*.options $OUT/

View File

@ -0,0 +1,2 @@
[libfuzzer]
max_len = 1000000

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.