diff options
author | yangzao <yangzaocn@outlook.com> | 2023-11-24 11:06:06 -0700 |
---|---|---|
committer | yangzao <yangzaocn@outlook.com> | 2023-11-24 11:06:06 -0700 |
commit | 770e868d04c0f52a1c57e5471e459dd24a002748 (patch) | |
tree | 3a7e42ea3385ce941839caa759b8c2da03356b83 /include/afl-fuzz.h | |
parent | d6cefdc1936fc0c312670469502d8ba9208530a3 (diff) | |
download | afl++-770e868d04c0f52a1c57e5471e459dd24a002748.tar.gz |
add custom_post_run.c
Diffstat (limited to 'include/afl-fuzz.h')
-rw-r--r-- | include/afl-fuzz.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/afl-fuzz.h b/include/afl-fuzz.h index 8112d430..7e91dc03 100644 --- a/include/afl-fuzz.h +++ b/include/afl-fuzz.h @@ -1021,6 +1021,18 @@ struct custom_mutator { void (*afl_custom_fuzz_send)(void *data, const u8 *buf, size_t buf_size); /** + * This method can be used if you want to run some code or scripts each time + * AFL++ executes the target with afl-fuzz. + * + * (Optional) + * + * @param data pointer returned in afl_custom_init by this custom mutator + * @param buf Buffer containing the test case + * @param buf_size Size of the test case + */ + void (*afl_custom_post_run)(void *data, const u8 *buf, size_t buf_size); + + /** * Allow for additional analysis (e.g. calling a different tool that does a * different kind of coverage and saves this for the custom mutator). * |