diff options
author | vanhauser-thc <vh@thc.org> | 2021-05-17 13:08:05 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2021-05-17 13:08:05 +0200 |
commit | 738246465d07770471ec34500909ebb4c3c5f1cf (patch) | |
tree | 5561f199dffd9a20200019194e634301e794cc5c /src/afl-fuzz-init.c | |
parent | 7b033367c2f49b47d0a5021a9ad9a82b514429de (diff) | |
download | afl++-738246465d07770471ec34500909ebb4c3c5f1cf.tar.gz |
fix seed crash disable
Diffstat (limited to 'src/afl-fuzz-init.c')
-rw-r--r-- | src/afl-fuzz-init.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/afl-fuzz-init.c b/src/afl-fuzz-init.c index 7337bfbf..c43bcc2b 100644 --- a/src/afl-fuzz-init.c +++ b/src/afl-fuzz-init.c @@ -1044,18 +1044,16 @@ void perform_dry_run(afl_state_t *afl) { /* Remove from fuzzing queue but keep for splicing */ - struct queue_entry *p = afl->queue; + if (!q->was_fuzzed) { - if (!p->was_fuzzed) { - - p->was_fuzzed = 1; + q->was_fuzzed = 1; --afl->pending_not_fuzzed; --afl->active_paths; } - p->disabled = 1; - p->perf_score = 0; + q->disabled = 1; + q->perf_score = 0; u32 i = 0; while (unlikely(i < afl->queued_paths && afl->queue_buf[i] && |