about summary refs log tree commit diff
path: root/include/afl-record-compat.h
diff options
context:
space:
mode:
author= <=>2024-03-11 10:30:35 +0000
committer= <=>2024-03-11 10:30:35 +0000
commit2ed2ac80bc632f39fa95e1d51c4f14ecde48355a (patch)
treefcf26b0901121215c1324aa342e30be8932dc715 /include/afl-record-compat.h
parent306a917956f91a34a6a9008952616fab07c8f21a (diff)
downloadafl++-2ed2ac80bc632f39fa95e1d51c4f14ecde48355a.tar.gz
fix record compat loop to replay correct number of inputs, and at least one input
Diffstat (limited to 'include/afl-record-compat.h')
-rw-r--r--include/afl-record-compat.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/afl-record-compat.h b/include/afl-record-compat.h
index 2c79595d..677d47b0 100644
--- a/include/afl-record-compat.h
+++ b/include/afl-record-compat.h
@@ -24,7 +24,7 @@ unsigned char fuzz_buf[FUZZ_BUF_SIZE];
 
 int __afl_persistent_loop(unsigned int max_cnt) {
 
-  static unsigned int       cycle_cnt = 1;
+  static unsigned int       cycle_cnt = 2;
   static unsigned short int inited = 0;
   char                      tcase[PATH_MAX];
 
@@ -32,7 +32,7 @@ int __afl_persistent_loop(unsigned int max_cnt) {
 
     if (!inited) {
 
-      cycle_cnt = replay_record_cnt;
+      cycle_cnt = replay_record_cnt+1;
       inited = 1;
 
     }