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