From 6f046b4dd7ef6e06aa7f037eef812d6625a9608c Mon Sep 17 00:00:00 2001 From: George Karpenkov Date: Wed, 2 Aug 2017 23:09:57 +0000 Subject: Revert "[libFuzzer tests] Use substring comparison in libFuzzer tests" This reverts commit 3592d8049660dcdd07f7c2e797f2de9790f93111. Breaks the bots, reverting for now. llvm-svn: 309899 --- llvm/lib/Fuzzer/test/InitializeTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Fuzzer/test/InitializeTest.cpp') diff --git a/llvm/lib/Fuzzer/test/InitializeTest.cpp b/llvm/lib/Fuzzer/test/InitializeTest.cpp index df1117c1ec5..0d6a0fda093 100644 --- a/llvm/lib/Fuzzer/test/InitializeTest.cpp +++ b/llvm/lib/Fuzzer/test/InitializeTest.cpp @@ -20,7 +20,7 @@ extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv) { extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { if (Size == strlen(argv0) && - !strnstr(reinterpret_cast(Data), argv0, Size)) { + !strncmp(reinterpret_cast(Data), argv0, Size)) { fprintf(stderr, "BINGO %s\n", argv0); exit(1); } -- cgit v1.2.3