summaryrefslogtreecommitdiff
path: root/lib/Fuzzer/test/FourIndependentBranchesTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Fuzzer/test/FourIndependentBranchesTest.cpp')
-rw-r--r--lib/Fuzzer/test/FourIndependentBranchesTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Fuzzer/test/FourIndependentBranchesTest.cpp b/lib/Fuzzer/test/FourIndependentBranchesTest.cpp
index bbf5ea235c7a..ba963d9b1de8 100644
--- a/lib/Fuzzer/test/FourIndependentBranchesTest.cpp
+++ b/lib/Fuzzer/test/FourIndependentBranchesTest.cpp
@@ -8,6 +8,7 @@
#include <iostream>
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
+ if (Size > 64) return 0;
int bits = 0;
if (Size > 0 && Data[0] == 'F') bits |= 1;
if (Size > 1 && Data[1] == 'U') bits |= 2;