diff options
author | van Hauser <vh@thc.org> | 2023-02-25 09:20:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-25 09:20:47 +0100 |
commit | ea14f3fd40e32234989043a525e3853fcb33c1b6 (patch) | |
tree | aaa8770a743f6ab25a9f2849f62af8a68521344d /src/afl-fuzz-mutators.c | |
parent | 3881ccd0b7520f67fd0b34f010443dc249cbc8f1 (diff) | |
parent | 2b5c9954f6099d7a70cbcf2db9af5a19327f385f (diff) | |
download | afl++-ea14f3fd40e32234989043a525e3853fcb33c1b6.tar.gz |
Merge pull request #1653 from AFLplusplus/dev
push to stable
Diffstat (limited to 'src/afl-fuzz-mutators.c')
-rw-r--r-- | src/afl-fuzz-mutators.c | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/src/afl-fuzz-mutators.c b/src/afl-fuzz-mutators.c index 22e5262e..9ea46e7a 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."); } @@ -358,6 +364,19 @@ struct custom_mutator *load_custom_mutator(afl_state_t *afl, const char *fn) { } + /* "afl_custom_splice_optout", optional, never called */ + mutator->afl_custom_splice_optout = dlsym(dh, "afl_custom_splice_optout"); + if (!mutator->afl_custom_splice_optout) { + + ACTF("optional symbol 'afl_custom_splice_optout' not found."); + + } else { + + OKF("Found 'afl_custom_splice_optout'."); + afl->custom_splice_optout = 1; + + } + /* "afl_custom_fuzz_send", optional */ mutator->afl_custom_fuzz_send = dlsym(dh, "afl_custom_fuzz_send"); if (!mutator->afl_custom_fuzz_send) { |