diff options
author | Kostya Serebryany <kcc@google.com> | 2017-06-15 22:43:40 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2017-06-15 22:43:40 +0000 |
commit | 589eae515e82e1f382ddf83984d6418a347d7f3a (patch) | |
tree | ec7178cd688a6188dbd4afacfdad03be77d4df01 /llvm/lib/Fuzzer/test/ShrinkControlFlowTest.cpp | |
parent | 56ed9deafcf05f65978f62715125e2210f59607e (diff) | |
download | bcm5719-llvm-589eae515e82e1f382ddf83984d6418a347d7f3a.tar.gz bcm5719-llvm-589eae515e82e1f382ddf83984d6418a347d7f3a.zip |
[libFuzzer] change the default max_len from 64 to 4096. This will affect cases where libFuzzer is run w/o initial corpus or with a corpus of very small items.
llvm-svn: 305521
Diffstat (limited to 'llvm/lib/Fuzzer/test/ShrinkControlFlowTest.cpp')
-rw-r--r-- | llvm/lib/Fuzzer/test/ShrinkControlFlowTest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Fuzzer/test/ShrinkControlFlowTest.cpp b/llvm/lib/Fuzzer/test/ShrinkControlFlowTest.cpp index d0954296362..37eeede7cbf 100644 --- a/llvm/lib/Fuzzer/test/ShrinkControlFlowTest.cpp +++ b/llvm/lib/Fuzzer/test/ShrinkControlFlowTest.cpp @@ -11,6 +11,7 @@ static volatile int Sink; extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { + if (Size > 64) return 0; int8_t Ids[256]; memset(Ids, -1, sizeof(Ids)); for (size_t i = 0; i < Size; i++) |