From 7e4bf8831c7034e860544a781f22babba3513244 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Wed, 26 Feb 2020 17:58:08 +0330 Subject: [PATCH] [harfbuzz] Setup a new target, hb-draw-fuzzer. (#3425) --- projects/harfbuzz/build.sh | 5 +++++ projects/harfbuzz/hb-draw-fuzzer.options | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 projects/harfbuzz/hb-draw-fuzzer.options diff --git a/projects/harfbuzz/build.sh b/projects/harfbuzz/build.sh index f83bf05b7..768bfa9c2 100755 --- a/projects/harfbuzz/build.sh +++ b/projects/harfbuzz/build.sh @@ -31,6 +31,10 @@ $CXX $CXXFLAGS -std=c++11 -Isrc \ ./test/fuzzing/hb-shape-fuzzer.cc -o $OUT/hb-shape-fuzzer \ $LIB_FUZZING_ENGINE ./src/.libs/libharfbuzz.a +$CXX $CXXFLAGS -std=c++11 -Isrc \ + ./test/fuzzing/hb-draw-fuzzer.cc -o $OUT/hb-draw-fuzzer \ + $LIB_FUZZING_ENGINE ./src/.libs/libharfbuzz.a + $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 @@ -52,5 +56,6 @@ for d in \ cp $d/* all-fonts/ done zip $OUT/hb-shape-fuzzer_seed_corpus.zip all-fonts/* +cp $OUT/hb-shape-fuzzer_seed_corpus.zip $OUT/hb-draw-fuzzer_seed_corpus.zip 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-draw-fuzzer.options b/projects/harfbuzz/hb-draw-fuzzer.options new file mode 100644 index 000000000..ea2a7a237 --- /dev/null +++ b/projects/harfbuzz/hb-draw-fuzzer.options @@ -0,0 +1,2 @@ +[libfuzzer] +timeout = 5