Set up new fuzz target, hb-set-fuzzer, for harfbuzz. (#3377)

This commit is contained in:
Garret Rieger 2020-02-11 14:05:43 -08:00 committed by GitHub
parent e37ccaa85f
commit 9093fee1cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -35,6 +35,10 @@ $CXX $CXXFLAGS -std=c++11 -Isrc \
./test/fuzzing/hb-subset-fuzzer.cc -o $OUT/hb-subset-fuzzer \
$LIB_FUZZING_ENGINE ./src/.libs/libharfbuzz-subset.a ./src/.libs/libharfbuzz.a
$CXX $CXXFLAGS -std=c++11 -Isrc \
./test/fuzzing/hb-set-fuzzer.cc -o $OUT/hb-set-fuzzer \
$LIB_FUZZING_ENGINE ./src/.libs/libharfbuzz.a
# Archive and copy to $OUT seed corpus if the build succeeded.
mkdir all-fonts
for d in \
@ -49,3 +53,4 @@ for d in \
done
zip $OUT/hb-shape-fuzzer_seed_corpus.zip all-fonts/*
cp $OUT/hb-shape-fuzzer_seed_corpus.zip $OUT/hb-subset-fuzzer_seed_corpus.zip
zip $OUT/hb-set-fuzzer_seed_corpus.zip ./test/fuzzing/sets/*

View File

@ -0,0 +1,2 @@
[libfuzzer]
timeout = 5