From 86f10d7f32958b796dfafafa7f47bc9a52624239 Mon Sep 17 00:00:00 2001 From: Abhishek Arya Date: Thu, 2 Feb 2017 19:02:51 -0800 Subject: [PATCH] Update reproducing.md --- docs/reproducing.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/reproducing.md b/docs/reproducing.md index 161b1a583..d8039f6aa 100644 --- a/docs/reproducing.md +++ b/docs/reproducing.md @@ -31,24 +31,25 @@ to replicate the exact build steps used by OSS-Fuzz and then feed the reproducer - *Reproduce using latest OSS-Fuzz build:* ```bash -$ python infra/helper.py build_fuzzers $PROJECT_NAME +$ python infra/helper.py build_fuzzers -e SANITIZER=
$PROJECT_NAME $ python infra/helper.py reproduce $PROJECT_NAME ``` It builds the fuzzer from the most recent successful OSS-Fuzz build (usually last night's sources) and feeds the testcase file to the target function. - E.g. for [libxml2](../projects/libxml2) project with fuzzer named `libxml2_xml_read_memory_fuzzer`, it will be: + E.g. for building [libxml2](../projects/libxml2) project with UndefinedBehaviorSanitizer instrumentation + and reproduce a crash testcase for a fuzzer named `libxml2_xml_read_memory_fuzzer`, it will be: ```bash -$ python infra/helper.py build_fuzzers libxml2 +$ python infra/helper.py build_fuzzers -e SANITIZER=undefined libxml2 $ python infra/helper.py reproduce libxml2 libxml2_xml_read_memory_fuzzer ~/Downloads/testcase ``` - *Reproduce using local source checkout:* ```bash -$ python infra/helper.py build_fuzzers $PROJECT_NAME +$ python infra/helper.py build_fuzzers -e SANITIZER=
$PROJECT_NAME $ python infra/helper.py reproduce $PROJECT_NAME ```