From 4063181791d6b3efb35e7c748dee12273e64ebd4 Mon Sep 17 00:00:00 2001 From: rsheeter Date: Wed, 8 May 2019 09:47:34 -0700 Subject: [PATCH] [docs] add fuzzer instructions (courtesy of Garret) --- TESTING.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/TESTING.md b/TESTING.md index 91b6abd..6bbf7bc 100644 --- a/TESTING.md +++ b/TESTING.md @@ -45,3 +45,13 @@ cd harfbuzz mkdir buid 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 +``` -- 2.7.4