Add new fuzzer, hb-repacker-fuzzer, to harfbuzz. (#9129)

This commit is contained in:
Garret Rieger 2022-12-02 17:23:39 -07:00 committed by GitHub
parent 87a914acc8
commit 9850414e6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -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/*

View File

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