aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-05-17 13:08:05 +0200
committervanhauser-thc <vh@thc.org>2021-05-17 13:08:05 +0200
commit738246465d07770471ec34500909ebb4c3c5f1cf (patch)
tree5561f199dffd9a20200019194e634301e794cc5c
parent7b033367c2f49b47d0a5021a9ad9a82b514429de (diff)
downloadafl++-738246465d07770471ec34500909ebb4c3c5f1cf.tar.gz
fix seed crash disable
-rw-r--r--src/afl-fuzz-init.c10
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] &&