forked from OSchip/llvm-project
[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:
parent
8f09cec8c9
commit
f16c4a3704
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue