From: George Karpenkov Date: Wed, 2 Aug 2017 23:09:57 +0000 (+0000) Subject: Revert "[libFuzzer tests] Use substring comparison in libFuzzer tests" X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=51c47348285aa98f37466dabc050857e6d48f05d;p=llvm Revert "[libFuzzer tests] Use substring comparison in libFuzzer tests" This reverts commit 3592d8049660dcdd07f7c2e797f2de9790f93111. Breaks the bots, reverting for now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309899 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Fuzzer/test/InitializeTest.cpp b/lib/Fuzzer/test/InitializeTest.cpp index df1117c1ec5..0d6a0fda093 100644 --- a/lib/Fuzzer/test/InitializeTest.cpp +++ b/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); }