diff options
author | van Hauser <vh@thc.org> | 2020-10-11 14:31:31 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-10-11 14:31:31 +0200 |
commit | 6a397d6111a21ebbf736237609c1c69d47c40f03 (patch) | |
tree | 75f135ecf45bd0c716172c6ca82ebcc486b61a8b /src/afl-fuzz-init.c | |
parent | 01ec0cce4759526499becab169c07b2ccf1eee89 (diff) | |
download | afl++-6a397d6111a21ebbf736237609c1c69d47c40f03.tar.gz |
add new seed selection algo and make it the default
Diffstat (limited to 'src/afl-fuzz-init.c')
-rw-r--r-- | src/afl-fuzz-init.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/afl-fuzz-init.c b/src/afl-fuzz-init.c index 65478a78..881bf10f 100644 --- a/src/afl-fuzz-init.c +++ b/src/afl-fuzz-init.c @@ -959,6 +959,8 @@ void perform_dry_run(afl_state_t *afl) { /* Remove from fuzzing queue but keep for splicing */ struct queue_entry *p = afl->queue; + p->disabled = 1; + p->perf_score = 0; while (p && p->next != q) p = p->next; @@ -968,6 +970,7 @@ void perform_dry_run(afl_state_t *afl) { afl->queue = q->next; --afl->pending_not_fuzzed; + --afl->active_paths; afl->max_depth = 0; p = afl->queue; @@ -1054,6 +1057,7 @@ restart_outer_cull_loop: duplicates = 1; --afl->pending_not_fuzzed; + afl->active_paths--; // We do not remove any of the memory allocated because for // splicing the data might still be interesting. @@ -1063,11 +1067,15 @@ restart_outer_cull_loop: // we keep the shorter file if (p->len >= q->len) { + p->disabled = 1; + p->perf_score = 0; q->next = p->next; goto restart_inner_cull_loop; } else { + q->disabled = 1; + q->perf_score = 0; if (prev) prev->next = q = p; else |