From 0611ca6f4a92d6eb7a7ba7c56b69ab3b5ad44ef2 Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Mon, 9 May 2016 19:23:28 +0000 Subject: [PATCH] [libFuzzer] better document the -merge=1 flag, part 2 llvm-svn: 268958 --- docs/LibFuzzer.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/LibFuzzer.rst b/docs/LibFuzzer.rst index d7947eba6ad..e2f6d943b0d 100644 --- a/docs/LibFuzzer.rst +++ b/docs/LibFuzzer.rst @@ -81,6 +81,13 @@ is to use the `-merge=1` flag: mkdir NEW_CORPUS_DIR # Store minimized corpus here. ./my-fuzzer -merge=1 NEW_CORPUS_DIR FULL_CORPUS_DIR +You may use the same flag to add more interesting items to an existing corpus. +Only the inputs that trigger new coverage will be added to the first corpus. + +.. code-block:: console + + ./my-fuzzer -merge=1 CURRNT_CORPUS_DIR NEW_POTENTIALLY_INTERESTING_INPUTS_DIR + Getting Started ===============