mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-13 02:28:09 +00:00
Merge pull request #497 from murx-/dev
Add support for specific custom mutator name
This commit is contained in:
@ -656,6 +656,7 @@ typedef struct afl_state {
|
|||||||
struct custom_mutator {
|
struct custom_mutator {
|
||||||
|
|
||||||
const char *name;
|
const char *name;
|
||||||
|
char * name_short;
|
||||||
void * dh;
|
void * dh;
|
||||||
u8 * post_process_buf;
|
u8 * post_process_buf;
|
||||||
size_t post_process_size;
|
size_t post_process_size;
|
||||||
|
@ -142,6 +142,7 @@ struct custom_mutator *load_custom_mutator(afl_state_t *afl, const char *fn) {
|
|||||||
struct custom_mutator *mutator = ck_alloc(sizeof(struct custom_mutator));
|
struct custom_mutator *mutator = ck_alloc(sizeof(struct custom_mutator));
|
||||||
|
|
||||||
mutator->name = fn;
|
mutator->name = fn;
|
||||||
|
mutator->name_short = strrchr(fn, '/') + 1;
|
||||||
ACTF("Loading custom mutator library from '%s'...", fn);
|
ACTF("Loading custom mutator library from '%s'...", fn);
|
||||||
|
|
||||||
dh = dlopen(fn, RTLD_NOW);
|
dh = dlopen(fn, RTLD_NOW);
|
||||||
|
@ -1683,6 +1683,8 @@ custom_mutator_stage:
|
|||||||
|
|
||||||
has_custom_fuzz = true;
|
has_custom_fuzz = true;
|
||||||
|
|
||||||
|
afl->stage_short = el->name_short;
|
||||||
|
|
||||||
for (afl->stage_cur = 0; afl->stage_cur < afl->stage_max;
|
for (afl->stage_cur = 0; afl->stage_cur < afl->stage_max;
|
||||||
++afl->stage_cur) {
|
++afl->stage_cur) {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user