|
|
1 年之前 | |
|---|---|---|
| .. | ||
| fonts | 1 年之前 | |
| graphs | 1 年之前 | |
| sets | 1 年之前 | |
| README.md | 1 年之前 | |
| hb-draw-fuzzer.cc | 1 年之前 | |
| hb-fuzzer.hh | 1 年之前 | |
| hb-repacker-fuzzer.cc | 1 年之前 | |
| hb-set-fuzzer.cc | 1 年之前 | |
| hb-shape-fuzzer.cc | 1 年之前 | |
| hb-subset-fuzzer.cc | 1 年之前 | |
| main.cc | 1 年之前 | |
| meson.build | 1 年之前 | |
| run-draw-fuzzer-tests.py | 1 年之前 | |
| run-repacker-fuzzer-tests.py | 1 年之前 | |
| run-shape-fuzzer-tests.py | 1 年之前 | |
| run-subset-fuzzer-tests.py | 1 年之前 | |
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: