From: Kostya Serebryany Date: Wed, 14 Dec 2016 01:31:21 +0000 (+0000) Subject: [libFuzzer] document one more desired feature of a fuzz target X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=68f637f2440aa90a981d9c58f5e8113aa45215a9;p=llvm [libFuzzer] document one more desired feature of a fuzz target git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289622 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/LibFuzzer.rst b/docs/LibFuzzer.rst index a8530f95285..ae565c6a262 100644 --- a/docs/LibFuzzer.rst +++ b/docs/LibFuzzer.rst @@ -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