about summary refs log tree commit diff
path: root/src/afl-fuzz-mutators.c
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2023-02-15 07:45:45 +0100
committervanhauser-thc <vh@thc.org>2023-02-15 07:45:45 +0100
commita7c43484e1e3afe6d1db440927e72e0f103ba977 (patch)
treea388ae482eb677b0083fc35ce4d41e1d2be1652c /src/afl-fuzz-mutators.c
parentb352e3d1cc51c450c0ba128cac011cab607eb887 (diff)
downloadafl++-a7c43484e1e3afe6d1db440927e72e0f103ba977.tar.gz
bettern custom mut warning
Diffstat (limited to 'src/afl-fuzz-mutators.c')
-rw-r--r--src/afl-fuzz-mutators.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/afl-fuzz-mutators.c b/src/afl-fuzz-mutators.c
index 22e5262e..f722374f 100644
--- a/src/afl-fuzz-mutators.c
+++ b/src/afl-fuzz-mutators.c
@@ -312,12 +312,18 @@ struct custom_mutator *load_custom_mutator(afl_state_t *afl, const char *fn) {
 
   if (notrim) {
 
+    if (mutator->afl_custom_init_trim || mutator->afl_custom_trim ||
+        mutator->afl_custom_post_trim) {
+
+      WARNF(
+          "Custom mutator does not implement all three trim APIs, standard "
+          "trimming will be used.");
+
+    }
+
     mutator->afl_custom_init_trim = NULL;
     mutator->afl_custom_trim = NULL;
     mutator->afl_custom_post_trim = NULL;
-    ACTF(
-        "Custom mutator does not implement all three trim APIs, standard "
-        "trimming will be used.");
 
   }