summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/test/SingleStrncmpTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Fuzzer/test/SingleStrncmpTest.cpp')
-rw-r--r--llvm/lib/Fuzzer/test/SingleStrncmpTest.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Fuzzer/test/SingleStrncmpTest.cpp b/llvm/lib/Fuzzer/test/SingleStrncmpTest.cpp
index b38c7995d8f..47298763f28 100644
--- a/llvm/lib/Fuzzer/test/SingleStrncmpTest.cpp
+++ b/llvm/lib/Fuzzer/test/SingleStrncmpTest.cpp
@@ -8,8 +8,7 @@
#include <cstring>
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
- if (Size > 64) return 0;
- char *S = (char*)Data;
+ const char *S = (const char*)Data;
volatile auto Strncmp = &(strncmp); // Make sure strncmp is not inlined.
if (Size >= 6 && !Strncmp(S, "qwerty", 6)) {
fprintf(stderr, "BINGO\n");
OpenPOWER on IntegriCloud