fixes two huge bugs
MODIFY
src/afl-fuzz-one.c
src/afl-fuzz-one.c
@@ -1851,7 +1851,8 @@ havoc_stage:
}
- if (unlikely(get_cur_time() - afl->last_path_time > 5000)) {
+ if (unlikely(get_cur_time() - afl->last_path_time > 5000 &&
+ afl->ready_for_splicing_count > 1)) {
/* add expensive havoc cases here if there is no findings in the last 5s */

MODIFY
src/afl-fuzz-run.c
src/afl-fuzz-run.c
@@ -587,9 +587,10 @@ void sync_fuzzers(afl_state_t *afl) {
u8 entry[12];
sprintf(entry, "id:%06u", next_min_accept);
+
while (m < n) {
- if (memcmp(namelist[m]->d_name, entry, 9)) {
+ if (strcmp(namelist[m]->d_name, entry)) {
m++;

MODIFY
src/afl-fuzz-stats.c
src/afl-fuzz-stats.c
@@ -1154,7 +1154,8 @@ void show_init_stats(afl_state_t *afl) {
} else {
- OKF("-t option specified. We'll use an exec timeout of %s ms.", afl->fsrv.exec_tmout);
+ ACTF("-t option specified. We'll use an exec timeout of %d ms.",
+ afl->fsrv.exec_tmout);
}

fixes two huge bugs