[llvm] r301217 - Updates documentation for a syntax sugar libfuzzer flag,

George Karpenkov via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 24 11:39:52 PDT 2017


Author: george.karpenkov
Date: Mon Apr 24 13:39:52 2017
New Revision: 301217

URL: http://llvm.org/viewvc/llvm-project?rev=301217&view=rev
Log:
Updates documentation for a syntax sugar libfuzzer flag,

as implemented in https://reviews.llvm.org/D32193

Modified:
    llvm/trunk/docs/LibFuzzer.rst

Modified: llvm/trunk/docs/LibFuzzer.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/LibFuzzer.rst?rev=301217&r1=301216&r2=301217&view=diff
==============================================================================
--- llvm/trunk/docs/LibFuzzer.rst (original)
+++ llvm/trunk/docs/LibFuzzer.rst Mon Apr 24 13:39:52 2017
@@ -87,10 +87,16 @@ Some important things to remember about
 * Usually, the narrower the target the better. E.g. if your target can parse several data formats, split it into several targets, one per format.
 
 
-Building
---------
+Fuzzer Usage
+------------
 
-Next, build the libFuzzer library as a static archive, without any sanitizer
+Very recent versions of Clang (> April 20 2017) include libFuzzer,
+and no installation is necessary.
+In order to fuzz your binary, use the `-fsanitize=fuzzer` flag during the compilation::
+
+   clang -fsanitize=fuzzer,address mytarget.c
+
+Otherwise, build the libFuzzer library as a static archive, without any sanitizer
 options. Note that the libFuzzer library contains the ``main()`` function:
 
 .. code-block:: console




More information about the llvm-commits mailing list