[NFC][fuzzer] Simplify StrcmpTest.cpp

The test started to consistently fail after unrelated
2ffaa9a173.

Even before the patch it was possible to fail the test,
e.g. -seed=1660180256 on my workstation.

Also this checks do not look related to strcmp.
This commit is contained in:
Vitaly Buka 2020-09-18 00:17:18 -07:00
parent 8f09cec8c9
commit f16c4a3704
1 changed files with 1 additions and 3 deletions

View File

@ -23,9 +23,7 @@ bool Eq(const uint8_t *Data, size_t Size, const char *Str) {
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
if (Eq(Data, Size, "ABC") &&
Size >= 3 && Eq(Data + 3, Size - 3, "QWER") &&
Size >= 7 && Eq(Data + 7, Size - 7, "ZXCVN") &&
Size >= 14 && Data[13] == 42
) {
Size >= 7 && Eq(Data + 7, Size - 7, "ZXCVN")) {
fprintf(stderr, "BINGO\n");
exit(1);
}