diff options
author | vanhauser-thc <vh@thc.org> | 2023-02-15 07:45:45 +0100 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2023-02-15 07:45:45 +0100 |
commit | a7c43484e1e3afe6d1db440927e72e0f103ba977 (patch) | |
tree | a388ae482eb677b0083fc35ce4d41e1d2be1652c /src/afl-fuzz-mutators.c | |
parent | b352e3d1cc51c450c0ba128cac011cab607eb887 (diff) | |
download | afl++-a7c43484e1e3afe6d1db440927e72e0f103ba977.tar.gz |
bettern custom mut warning
Diffstat (limited to 'src/afl-fuzz-mutators.c')
-rw-r--r-- | src/afl-fuzz-mutators.c | 12 |
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."); } |