summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/test/SimpleHashTest.cpp
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2017-07-19 23:45:46 +0000
committerKostya Serebryany <kcc@google.com>2017-07-19 23:45:46 +0000
commita168af7b5fa5143e511aac50fe3782f8da12ab3a (patch)
tree4e109a34f561f86de3a1afbd79e6cf89e059763b /llvm/lib/Fuzzer/test/SimpleHashTest.cpp
parent388f88070eaefaab233f7aeaca98987fd7b042b0 (diff)
downloadbcm5719-llvm-a168af7b5fa5143e511aac50fe3782f8da12ab3a.tar.gz
bcm5719-llvm-a168af7b5fa5143e511aac50fe3782f8da12ab3a.zip
[libFuzzer] change several tests to not limit the max len: with reduce_inputs=1 they are now fast enough even w/o this
llvm-svn: 308553
Diffstat (limited to 'llvm/lib/Fuzzer/test/SimpleHashTest.cpp')
-rw-r--r--llvm/lib/Fuzzer/test/SimpleHashTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Fuzzer/test/SimpleHashTest.cpp b/llvm/lib/Fuzzer/test/SimpleHashTest.cpp
index a3f4211ebee..99e96cb25dc 100644
--- a/llvm/lib/Fuzzer/test/SimpleHashTest.cpp
+++ b/llvm/lib/Fuzzer/test/SimpleHashTest.cpp
@@ -26,7 +26,7 @@ static uint32_t simple_hash(const uint8_t *Data, size_t Size) {
}
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
- if (Size < 14 || Size > 64)
+ if (Size < 14)
return 0;
uint32_t Hash = simple_hash(&Data[0], Size - 4);
OpenPOWER on IntegriCloud