sfxsfl 81bd2e02f4 first code checkin 9 months ago
..
fonts 81bd2e02f4 first code checkin 9 months ago
graphs 81bd2e02f4 first code checkin 9 months ago
sets 81bd2e02f4 first code checkin 9 months ago
Makefile.am 81bd2e02f4 first code checkin 9 months ago
README.md 81bd2e02f4 first code checkin 9 months ago
hb-draw-fuzzer.cc 81bd2e02f4 first code checkin 9 months ago
hb-fuzzer.hh 81bd2e02f4 first code checkin 9 months ago
hb-repacker-fuzzer.cc 81bd2e02f4 first code checkin 9 months ago
hb-set-fuzzer.cc 81bd2e02f4 first code checkin 9 months ago
hb-shape-fuzzer.cc 81bd2e02f4 first code checkin 9 months ago
hb-subset-fuzzer.cc 81bd2e02f4 first code checkin 9 months ago
main.cc 81bd2e02f4 first code checkin 9 months ago
meson.build 81bd2e02f4 first code checkin 9 months ago
run-draw-fuzzer-tests.py 81bd2e02f4 first code checkin 9 months ago
run-repacker-fuzzer-tests.py 81bd2e02f4 first code checkin 9 months ago
run-shape-fuzzer-tests.py 81bd2e02f4 first code checkin 9 months ago
run-subset-fuzzer-tests.py 81bd2e02f4 first code checkin 9 months ago

README.md

To build the fuzzers with libFuzzer to perform actual fuzzing, build with:

CXX=clang++ CXXFLAGS="-fsanitize=address,fuzzer-no-link" meson fuzzbuild --default-library=static -Dfuzzer_ldflags="-fsanitize=address,fuzzer"

ninja -Cfuzzbuild

Then, run the fuzzer like this:

fuzzbuild/test/fuzzing/hb-{shape,draw,subset,set}-fuzzer [-max_len=2048] [CORPUS_DIR]

Where max_len specifies the maximal length of font files to handle. The smaller the faster.

For more details consult the following locations: