mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-15 11:28:08 +00:00
[fix] Custom mutator does not implement all three trim APIs, standard trimming will be used, but now the actual implementation does not match the description, fix this problem
This commit is contained in:
@ -255,6 +255,7 @@ struct custom_mutator *load_custom_mutator(afl_state_t *afl, const char *fn) {
|
||||
mutator->afl_custom_init_trim = dlsym(dh, "afl_custom_init_trim");
|
||||
if (!mutator->afl_custom_init_trim) {
|
||||
|
||||
notrim = 1;
|
||||
ACTF("optional symbol 'afl_custom_init_trim' not found.");
|
||||
|
||||
}
|
||||
@ -263,6 +264,7 @@ struct custom_mutator *load_custom_mutator(afl_state_t *afl, const char *fn) {
|
||||
mutator->afl_custom_trim = dlsym(dh, "afl_custom_trim");
|
||||
if (!mutator->afl_custom_trim) {
|
||||
|
||||
notrim = 1;
|
||||
ACTF("optional symbol 'afl_custom_trim' not found.");
|
||||
|
||||
}
|
||||
@ -271,6 +273,7 @@ struct custom_mutator *load_custom_mutator(afl_state_t *afl, const char *fn) {
|
||||
mutator->afl_custom_post_trim = dlsym(dh, "afl_custom_post_trim");
|
||||
if (!mutator->afl_custom_post_trim) {
|
||||
|
||||
notrim = 1;
|
||||
ACTF("optional symbol 'afl_custom_post_trim' not found.");
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user