From 9850414e6e44f52ae6449a2e542dcefad0619c92 Mon Sep 17 00:00:00 2001 From: Garret Rieger Date: Fri, 2 Dec 2022 17:23:39 -0700 Subject: [PATCH] Add new fuzzer, hb-repacker-fuzzer, to harfbuzz. (#9129) --- projects/harfbuzz/build.sh | 7 +++++-- projects/harfbuzz/hb-repacker-fuzzer.options | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 projects/harfbuzz/hb-repacker-fuzzer.options diff --git a/projects/harfbuzz/build.sh b/projects/harfbuzz/build.sh index c43b25312..20e59af00 100755 --- a/projects/harfbuzz/build.sh +++ b/projects/harfbuzz/build.sh @@ -35,8 +35,8 @@ meson --default-library=static --wrap-mode=nodownload \ || (cat build/meson-logs/meson-log.txt && false) # Build the fuzzers. -ninja -v -j$(nproc) -C $build test/fuzzing/hb-{shape,draw,subset,set}-fuzzer -mv $build/test/fuzzing/hb-{shape,draw,subset,set}-fuzzer $OUT/ +ninja -v -j$(nproc) -C $build test/fuzzing/hb-{shape,draw,repacker,subset,set}-fuzzer +mv $build/test/fuzzing/hb-{shape,draw,repacker,subset,set}-fuzzer $OUT/ # Archive and copy to $OUT seed corpus if the build succeeded. mkdir all-fonts @@ -50,7 +50,10 @@ for d in \ ; do 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/* +zip $OUT/hb-repacker-fuzzer_seed_corpus.zip ./test/fuzzing/graphs/* + diff --git a/projects/harfbuzz/hb-repacker-fuzzer.options b/projects/harfbuzz/hb-repacker-fuzzer.options new file mode 100644 index 000000000..ea2a7a237 --- /dev/null +++ b/projects/harfbuzz/hb-repacker-fuzzer.options @@ -0,0 +1,2 @@ +[libfuzzer] +timeout = 5