mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-21 05:42:12 +00:00
make slow systems pass our test suite
This commit is contained in:
@ -10,12 +10,9 @@ int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t i) {
|
|||||||
|
|
||||||
if (i < 15) return -1;
|
if (i < 15) return -1;
|
||||||
if (buf[0] != 'A') return 0;
|
if (buf[0] != 'A') return 0;
|
||||||
if (buf[1] != 'B') return 0;
|
int *icmp = (int *)(buf + 1);
|
||||||
if (buf[2] != 'C') return 0;
|
|
||||||
if (buf[3] != 'D') return 0;
|
|
||||||
int *icmp = (int *)(buf + 4);
|
|
||||||
if (*icmp != 0x69694141) return 0;
|
if (*icmp != 0x69694141) return 0;
|
||||||
if (memcmp(buf + 8, "1234EF", 6) == 0) abort();
|
if (memcmp(buf + 5, "1234EF", 6) == 0) abort();
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user