mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-16 03:48:08 +00:00
fix shmem persistent mode
This commit is contained in:
@ -25,7 +25,7 @@ int main(int argc, char **argv) {
|
||||
__AFL_INIT();
|
||||
unsigned char *buf = __AFL_FUZZ_TESTCASE_BUF;
|
||||
|
||||
while (__AFL_LOOP(2147483647)) {
|
||||
while (__AFL_LOOP(2147483647)) { // MAX_INT if you have 100% stability
|
||||
|
||||
unsigned int len = __AFL_FUZZ_TESTCASE_LEN;
|
||||
|
||||
@ -50,6 +50,8 @@ int main(int argc, char **argv) {
|
||||
counter++;
|
||||
#endif
|
||||
|
||||
fprintf(stderr, "len: %u\n", len);
|
||||
|
||||
if (!len) continue;
|
||||
|
||||
if (buf[0] == '0')
|
||||
|
Reference in New Issue
Block a user