This commit is contained in:
vanhauser-thc
2023-08-31 09:25:41 +02:00
parent 5020e6b275
commit 78848f8637

View File

@ -2707,10 +2707,28 @@ int main(int argc, char **argv_orig, char **envp) {
if (likely(!afl->old_seed_selection)) {
if (likely(afl->pending_favored)) {
for (u32 iter = 0; iter < afl->queued_items; ++iter) {
if (unlikely(afl->queue_buf[iter]->favored &&
!afl->queue_buf[iter]->was_fuzzed)) {
afl->current_entry = iter;
afl->queue_cur = afl->queue_buf[afl->current_entry];
break;
}
}
} else {
if (unlikely(prev_queued_items < afl->queued_items ||
afl->reinit_table)) {
// we have new queue entries since the last run, recreate alias table
// we have new queue entries since the last run, recreate alias
// table
prev_queued_items = afl->queued_items;
create_alias_table(afl);
@ -2726,6 +2744,8 @@ int main(int argc, char **argv_orig, char **envp) {
}
}
skipped_fuzz = fuzz_one(afl);
#ifdef INTROSPECTION
++afl->queue_cur->stats_selected;