correct fix

This commit is contained in:
=
2024-03-11 12:01:06 +00:00
parent 2ed2ac80bc
commit 08f6d59f50

View File

@ -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--;
}