tree: b6fceed0aeb9ea05260c51ed97a66d54b0dad3bf [path history] [tgz]
  1. fonts/
  2. graphs/
  3. sets/
  4. glob.py
  5. hb-draw-fuzzer.cc
  6. hb-fuzzer.hh
  7. hb-repacker-fuzzer.cc
  8. hb-set-fuzzer.cc
  9. hb-shape-fuzzer.cc
  10. hb-subset-fuzzer.cc
  11. main.cc
  12. meson.build
  13. README.md
test/fuzzing/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: