about summary refs log tree commit diff
path: root/src/afl-fuzz-queue.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-09-25 11:39:25 +0200
committerGitHub <noreply@github.com>2020-09-25 11:39:25 +0200
commit3334eeb4ebd1d933f3b663a6eabc17835c6850c5 (patch)
tree8b292e6c58086d785fa692f5344eedc5974e32ef /src/afl-fuzz-queue.c
parente38ca0e7508752c8a8d1e87d4bb215d90126babf (diff)
parenta75e7594f78454a11e3d93b3cb4878a21e4e943f (diff)
downloadafl++-3334eeb4ebd1d933f3b663a6eabc17835c6850c5.tar.gz
Merge pull request #564 from wakolzin/dev
Fix potential endless loop in custom_mutator_stage
Diffstat (limited to 'src/afl-fuzz-queue.c')
-rw-r--r--src/afl-fuzz-queue.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/afl-fuzz-queue.c b/src/afl-fuzz-queue.c
index ddd08f1c..14aa34fc 100644
--- a/src/afl-fuzz-queue.c
+++ b/src/afl-fuzz-queue.c
@@ -234,6 +234,8 @@ void add_to_queue(afl_state_t *afl, u8 *fname, u32 len, u8 passed_det) {
 
   }
 
+  if (q->len > 1) afl->ready_for_splicing_count++;
+
   ++afl->queued_paths;
   ++afl->pending_not_fuzzed;