mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-16 11:58:08 +00:00
support custom mutator introspection
This commit is contained in:
@ -1780,10 +1780,16 @@ custom_mutator_stage:
|
||||
|
||||
orig_hit_cnt = afl->queued_paths + afl->unique_crashes;
|
||||
|
||||
#ifdef INTROSPECTION
|
||||
afl->mutation[0] = 0;
|
||||
#endif
|
||||
|
||||
LIST_FOREACH(&afl->custom_mutator_list, struct custom_mutator, {
|
||||
|
||||
if (el->afl_custom_fuzz) {
|
||||
|
||||
afl->current_custom_fuzz = el;
|
||||
|
||||
if (el->afl_custom_fuzz_count)
|
||||
afl->stage_max = el->afl_custom_fuzz_count(el->data, out_buf, len);
|
||||
else
|
||||
@ -1889,6 +1895,8 @@ custom_mutator_stage:
|
||||
|
||||
});
|
||||
|
||||
afl->current_custom_fuzz = NULL;
|
||||
|
||||
if (!has_custom_fuzz) goto havoc_stage;
|
||||
|
||||
new_hit_cnt = afl->queued_paths + afl->unique_crashes;
|
||||
|
Reference in New Issue
Block a user