[llvm] r289622 - [libFuzzer] document one more desired feature of a fuzz target

Kostya Serebryany via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 13 17:31:21 PST 2016


Author: kcc
Date: Tue Dec 13 19:31:21 2016
New Revision: 289622

URL: http://llvm.org/viewvc/llvm-project?rev=289622&view=rev
Log:
[libFuzzer] document one more desired feature of a fuzz target

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=289622&r1=289621&r2=289622&view=diff
==============================================================================
--- llvm/trunk/docs/LibFuzzer.rst (original)
+++ llvm/trunk/docs/LibFuzzer.rst Tue Dec 13 19:31:21 2016
@@ -84,6 +84,7 @@ Some important things to remember about
 * It must be as deterministic as possible. Non-determinism (e.g. random decisions not based on the input bytes) will make fuzzing inefficient.
 * It must be fast. Try avoiding cubic or greater complexity, logging, or excessive memory consumption.
 * Ideally, it should not modify any global state (although that's not strict).
+* 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




More information about the llvm-commits mailing list