mirror of https://github.com/google/oss-fuzz.git
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:
parent
ec444de5d2
commit
7643d95314
|
@ -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
|
||||
|
|
|
@ -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/
|
||||
|
|
|
@ -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.
Loading…
Reference in New Issue