about summary refs log tree commit diff
path: root/src/afl-fuzz-init.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2021-01-28 14:11:33 +0100
committervan Hauser <vh@thc.org>2021-01-28 14:11:33 +0100
commita61a30dee03aced16d117150c4dbfd7079de7e68 (patch)
tree54d9b3d693f72a515c120b27e9156b1b80356c7c /src/afl-fuzz-init.c
parentd62c83d58f67cd911b0a49f0e6662ac5b75741ad (diff)
downloadafl++-a61a30dee03aced16d117150c4dbfd7079de7e68.tar.gz
fix another pending_not_fuzzed location
Diffstat (limited to 'src/afl-fuzz-init.c')
-rw-r--r--src/afl-fuzz-init.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/afl-fuzz-init.c b/src/afl-fuzz-init.c
index 5f5e65cd..84f81112 100644
--- a/src/afl-fuzz-init.c
+++ b/src/afl-fuzz-init.c
@@ -1041,6 +1041,7 @@ void perform_dry_run(afl_state_t *afl) {
 
         if (!p->was_fuzzed) {
 
+          p->was_fuzzed = 1;
           --afl->pending_not_fuzzed;
           --afl->active_paths;
 
@@ -1153,7 +1154,7 @@ restart_outer_cull_loop:
 
             p->was_fuzzed = 1;
             --afl->pending_not_fuzzed;
-            afl->active_paths--;
+            --afl->active_paths;
 
           }
 
@@ -1168,7 +1169,7 @@ restart_outer_cull_loop:
 
             q->was_fuzzed = 1;
             --afl->pending_not_fuzzed;
-            afl->active_paths--;
+            --afl->active_paths;
 
           }