From 589eae515e82e1f382ddf83984d6418a347d7f3a Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Thu, 15 Jun 2017 22:43:40 +0000 Subject: [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 --- llvm/lib/Fuzzer/test/AbsNegAndConstant64Test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Fuzzer/test/AbsNegAndConstant64Test.cpp') diff --git a/llvm/lib/Fuzzer/test/AbsNegAndConstant64Test.cpp b/llvm/lib/Fuzzer/test/AbsNegAndConstant64Test.cpp index dfb6007b797..b5a61ddca71 100644 --- a/llvm/lib/Fuzzer/test/AbsNegAndConstant64Test.cpp +++ b/llvm/lib/Fuzzer/test/AbsNegAndConstant64Test.cpp @@ -9,7 +9,7 @@ #include extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { - if (Size < 16) return 0; + if (Size < 16 || Size > 64) return 0; int64_t x; uint64_t y; memcpy(&x, Data, sizeof(x)); -- cgit v1.2.3