[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
Date: Tue Dec 13 19:31:21 2016
New Revision: 289622
[libFuzzer] document one more desired feature of a fuzz target
--- 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.
More information about the llvm-commits