[libFuzzer] document one more desired feature of a fuzz target
authorKostya Serebryany <kcc@google.com>
Wed, 14 Dec 2016 01:31:21 +0000 (01:31 +0000)
committerKostya Serebryany <kcc@google.com>
Wed, 14 Dec 2016 01:31:21 +0000 (01:31 +0000)
llvm-svn: 289622

llvm/docs/LibFuzzer.rst

index a8530f9..ae565c6 100644 (file)
@@ -84,6 +84,7 @@ Some important things to remember about fuzz targets:
 * 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