fixes two huge bugs

This commit is contained in:
van Hauser
2020-10-29 00:05:28 +01:00
parent 17c0d928e8
commit b5686eb63e
3 changed files with 7 additions and 4 deletions

View File

@ -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 */ /* add expensive havoc cases here if there is no findings in the last 5s */

View File

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

View File

@ -1154,7 +1154,8 @@ void show_init_stats(afl_state_t *afl) {
} else { } 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);
} }