diff --git a/docs/reproducing.md b/docs/reproducing.md index 3b89d0853..c5a741e56 100644 --- a/docs/reproducing.md +++ b/docs/reproducing.md @@ -25,13 +25,13 @@ to replicate the exact build steps used by OSS-Fuzz and then feed the reproducer - *Reproduce using latest OSS-Fuzz build:*
-docker run --rm -ti -v $testcase_file:/testcase ossfuzz/$target reproduce $fuzzer +docker run --rm -ti -v $testcase_file:/testcase ossfuzz/$project reproduce $fuzzerIt 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](../target/libxml2) target with fuzzer named `libxml2_xml_read_memory_fuzzer`, it will be: + E.g. for [libxml2](../target/libxml2) project with fuzzer named `libxml2_xml_read_memory_fuzzer`, it will be:
docker run --rm -ti -v ~/Downloads/testcase:/testcase ossfuzz/libxml2 reproduce libxml2_xml_read_memory_fuzzer @@ -39,12 +39,12 @@ docker run --rm -ti -v ~/Downloads/testcase:/testcase ossfuzz/< - *Reproduce using local source checkout:*- docker run --rm -ti -v $local_source_checkout_dir:/src/$target \ - -v $testcase_file:/testcase ossfuzz/$target reproduce $fuzzer + docker run --rm -ti -v $local_source_checkout_dir:/src/$project \ + -v $testcase_file:/testcase ossfuzz/$project reproduce $fuzzerThis is essentially the previous command that additionally mounts local sources into the running container. - *Fix issue*. Write a patch to fix the issue in your local checkout and then use the previous command to verify the fix (i.e. no crash occurred). [Use gdb](debugging.md#debugging-fuzzers-with-gdb) if needed. -- *Submit fix*. Submit the fix in the target's repository. ClusterFuzz will automatically pick up the changes, recheck the testcase and will close the issue (in <1 day). +- *Submit fix*. Submit the fix in the project's repository. ClusterFuzz will automatically pick up the changes, recheck the testcase and will close the issue (in < 1 day). - *Improve fuzzing support*. Consider [improving fuzzing support](ideal_integration.md) in your project's build and test system.