fix shmem persistent mode

This commit is contained in:
van Hauser
2020-06-04 02:37:05 +02:00
parent e11922e5cc
commit 35ddec7aeb
5 changed files with 15 additions and 15 deletions

View File

@ -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')