diff options
author | van Hauser <vh@thc.org> | 2020-06-04 02:37:05 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-06-04 02:37:05 +0200 |
commit | 35ddec7aebaa3fdd454118a31483f9c43e549d6a (patch) | |
tree | 3f1d6d1be54c1f4fa052a35252c175ab5feb42e6 /examples/persistent_demo/test-instr.c | |
parent | e11922e5cceb6ddf36d7860f77f315c7a73bab15 (diff) | |
download | afl++-35ddec7aebaa3fdd454118a31483f9c43e549d6a.tar.gz |
fix shmem persistent mode
Diffstat (limited to 'examples/persistent_demo/test-instr.c')
-rw-r--r-- | examples/persistent_demo/test-instr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/persistent_demo/test-instr.c b/examples/persistent_demo/test-instr.c index 4cd07102..f7512790 100644 --- a/examples/persistent_demo/test-instr.c +++ b/examples/persistent_demo/test-instr.c @@ -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') |