]> granicus.if.org Git - llvm/commitdiff
[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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289622 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LibFuzzer.rst

index a8530f95285914f8d522e250349fac19e04c2af9..ae565c6a262b9a8b5534f0bfe15cb4623afcd966 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