about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2023-02-01 17:16:51 +0100
committervanhauser-thc <vh@thc.org>2023-02-01 17:16:51 +0100
commit91ccbf3f68ab9e6e4bc277f86c3efed666867132 (patch)
treeb35913c4c0710a044060e5e244ec58ba005d1c15 /src
parentb5d8d4c866137a8a6bd55225b0eaf723123c46c9 (diff)
downloadafl++-91ccbf3f68ab9e6e4bc277f86c3efed666867132.tar.gz
fix
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz-one.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/afl-fuzz-one.c b/src/afl-fuzz-one.c
index b25398c4..2f016217 100644
--- a/src/afl-fuzz-one.c
+++ b/src/afl-fuzz-one.c
@@ -1988,7 +1988,8 @@ custom_mutator_stage:
 
           if (unlikely(!mutated_buf)) {
 
-            FATAL("Error in custom_fuzz. Size returned: %zu", mutated_size);
+            //FATAL("Error in custom_fuzz. Size returned: %zu", mutated_size);
+            break;
 
           }
 
@@ -2040,7 +2041,7 @@ custom_mutator_stage:
   new_hit_cnt = afl->queued_items + afl->saved_crashes;
 
   afl->stage_finds[STAGE_CUSTOM_MUTATOR] += new_hit_cnt - orig_hit_cnt;
-  afl->stage_cycles[STAGE_CUSTOM_MUTATOR] += afl->stage_max;
+  afl->stage_cycles[STAGE_CUSTOM_MUTATOR] += afl->stage_cur;
 #ifdef INTROSPECTION
   afl->queue_cur->stats_mutated += afl->stage_max;
 #endif