Sasha Szpakowski aecb572558 update harfbuzz to 10.1.0 1 年之前
..
fonts aecb572558 update harfbuzz to 10.1.0 1 年之前
graphs aecb572558 update harfbuzz to 10.1.0 1 年之前
sets aecb572558 update harfbuzz to 10.1.0 1 年之前
README.md aecb572558 update harfbuzz to 10.1.0 1 年之前
hb-draw-fuzzer.cc aecb572558 update harfbuzz to 10.1.0 1 年之前
hb-fuzzer.hh aecb572558 update harfbuzz to 10.1.0 1 年之前
hb-repacker-fuzzer.cc aecb572558 update harfbuzz to 10.1.0 1 年之前
hb-set-fuzzer.cc aecb572558 update harfbuzz to 10.1.0 1 年之前
hb-shape-fuzzer.cc aecb572558 update harfbuzz to 10.1.0 1 年之前
hb-subset-fuzzer.cc aecb572558 update harfbuzz to 10.1.0 1 年之前
main.cc aecb572558 update harfbuzz to 10.1.0 1 年之前
meson.build aecb572558 update harfbuzz to 10.1.0 1 年之前
run-draw-fuzzer-tests.py aecb572558 update harfbuzz to 10.1.0 1 年之前
run-repacker-fuzzer-tests.py aecb572558 update harfbuzz to 10.1.0 1 年之前
run-shape-fuzzer-tests.py aecb572558 update harfbuzz to 10.1.0 1 年之前
run-subset-fuzzer-tests.py aecb572558 update harfbuzz to 10.1.0 1 年之前

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: