llvm.org GIT mirror llvm / 6f76a43
Updates documentation for a syntax sugar libfuzzer flag, as implemented in https://reviews.llvm.org/D32193 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301217 91177308-0d34-0410-b5e6-96231b3b80d8 George Karpenkov 3 years ago
1 changed file(s) with 10 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
8686 * 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.
8787
8888
89 Building
90 --------
91
92 Next, build the libFuzzer library as a static archive, without any sanitizer
89 Fuzzer Usage
90 ------------
91
92 Very recent versions of Clang (> April 20 2017) include libFuzzer,
93 and no installation is necessary.
94 In order to fuzz your binary, use the `-fsanitize=fuzzer` flag during the compilation::
95
96 clang -fsanitize=fuzzer,address mytarget.c
97
98 Otherwise, build the libFuzzer library as a static archive, without any sanitizer
9399 options. Note that the libFuzzer library contains the ``main()`` function:
94100
95101 .. code-block:: console