tree: c1bca578dde87940e6da7a6107ea0704b2036003 [path history] [tgz]
  1. fonts/
  2. graphs/
  3. clusterfuzz-testcase-minimized-hb-subset-fuzzer-6461128124465152
  4. decode-seed.py
  5. glob.py
  6. hb-fuzzer.hh
  7. hb-raster-fuzzer.cc
  8. hb-repacker-fuzzer.cc
  9. hb-shape-fuzzer.cc
  10. hb-shape-input.hh
  11. hb-subset-fuzzer.cc
  12. hb-vector-fuzzer.cc
  13. hb_fuzzing_tools.py
  14. main.cc
  15. meson.build
  16. README.md
  17. record-subset-test.py
  18. record-test.py
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,raster,vector,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: