From 08f6d59f505436f4aec70ddd341d27f1d7bd7ccf Mon Sep 17 00:00:00 2001 From: = <=> Date: Mon, 11 Mar 2024 12:01:06 +0000 Subject: correct fix --- include/afl-record-compat.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/afl-record-compat.h') diff --git a/include/afl-record-compat.h b/include/afl-record-compat.h index 677d47b0..3e5d60e3 100644 --- a/include/afl-record-compat.h +++ b/include/afl-record-compat.h @@ -24,15 +24,15 @@ unsigned char fuzz_buf[FUZZ_BUF_SIZE]; int __afl_persistent_loop(unsigned int max_cnt) { - static unsigned int cycle_cnt = 2; + static unsigned int cycle_cnt = 1; static unsigned short int inited = 0; char tcase[PATH_MAX]; - if (is_replay_record) { + if (is_replay_record && cycle_cnt) { if (!inited) { - cycle_cnt = replay_record_cnt+1; + cycle_cnt = replay_record_cnt; inited = 1; } @@ -59,7 +59,7 @@ int __afl_persistent_loop(unsigned int max_cnt) { } - return --cycle_cnt; + return cycle_cnt--; } -- cgit 1.4.1