summaryrefslogtreecommitdiff
path: root/lib/fuzzer/FuzzerFlags.def
diff options
context:
space:
mode:
authorMatt Morehouse <mascasa@google.com>2018-02-13 20:52:15 +0000
committerMatt Morehouse <mascasa@google.com>2018-02-13 20:52:15 +0000
commitcf74a02bf3b5785954b500ad6bc72b54d6b5a904 (patch)
tree99ec59bec57268abc4587035324a35c10cb4b144 /lib/fuzzer/FuzzerFlags.def
parent0d0f9187c4859bc25069712ea016a83fec0e0d73 (diff)
[libFuzzer] Set -experimental_len_control=1000 as default.
Summary: Experiments using https://github.com/google/fuzzer-test-suite/tree/master/engine-comparison show a significant increase in coverage and reduction in corpus size with this option enabled. Addresses https://llvm.org/pr36371. Reviewers: kcc Reviewed By: kcc Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D42932 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@325050 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/fuzzer/FuzzerFlags.def')
-rw-r--r--lib/fuzzer/FuzzerFlags.def5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/fuzzer/FuzzerFlags.def b/lib/fuzzer/FuzzerFlags.def
index a32102a7d..7e722f415 100644
--- a/lib/fuzzer/FuzzerFlags.def
+++ b/lib/fuzzer/FuzzerFlags.def
@@ -17,7 +17,10 @@ FUZZER_FLAG_INT(runs, -1,
FUZZER_FLAG_INT(max_len, 0, "Maximum length of the test input. "
"If 0, libFuzzer tries to guess a good value based on the corpus "
"and reports it. ")
-FUZZER_FLAG_INT(experimental_len_control, 0, "experimental flag")
+FUZZER_FLAG_INT(len_control, 1000, "Try generating small inputs first, "
+ "then try larger inputs over time. Specifies the rate at which the length "
+ "limit is increased (smaller == faster). If 0, immediately try inputs with "
+ "size up to max_len.")
FUZZER_FLAG_INT(cross_over, 1, "If 1, cross over inputs.")
FUZZER_FLAG_INT(mutate_depth, 5,
"Apply this number of consecutive mutations to each input.")