From 9093fee1cb917221e3225ff9d2d9be969a7a3a8f Mon Sep 17 00:00:00 2001 From: Garret Rieger Date: Tue, 11 Feb 2020 14:05:43 -0800 Subject: [PATCH] Set up new fuzz target, hb-set-fuzzer, for harfbuzz. (#3377) --- projects/harfbuzz/build.sh | 5 +++++ projects/harfbuzz/hb-set-fuzzer.options | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 projects/harfbuzz/hb-set-fuzzer.options diff --git a/projects/harfbuzz/build.sh b/projects/harfbuzz/build.sh index c3d052052..f83bf05b7 100755 --- a/projects/harfbuzz/build.sh +++ b/projects/harfbuzz/build.sh @@ -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/* diff --git a/projects/harfbuzz/hb-set-fuzzer.options b/projects/harfbuzz/hb-set-fuzzer.options new file mode 100644 index 000000000..ea2a7a237 --- /dev/null +++ b/projects/harfbuzz/hb-set-fuzzer.options @@ -0,0 +1,2 @@ +[libfuzzer] +timeout = 5