[docs] add fuzzer instructions (courtesy of Garret)

This commit is contained in:
rsheeter 2019-05-08 09:47:34 -07:00 committed by Behdad Esfahbod
parent 00946ca3aa
commit 4063181791
1 changed files with 10 additions and 0 deletions

View File

@ -45,3 +45,13 @@ cd harfbuzz
mkdir buid mkdir buid
cmake -DHB_CHECK=ON -Bbuild -H. -GNinja && ninja -Cbuild && CTEST_OUTPUT_ON_FAILURE=1 ninja -Cbuild test cmake -DHB_CHECK=ON -Bbuild -H. -GNinja && ninja -Cbuild && CTEST_OUTPUT_ON_FAILURE=1 ninja -Cbuild test
``` ```
## Test with the Fuzzer
```shell
# push your changs to a branch on googlefonts/harfbuzz
# In a local copy of oss-fuzz, edit projects/harfbuzz/Dockerfile
# Change the git clone to pull your branch
sudo python infra/helper.py build_image harfbuzz
sudo python infra/helper.py build_fuzzers --sanitizer address harfbuzz
sudo python infra/helper.py run_fuzzer harfbuzz hb-subset-fuzzer
```