diff options
author | van Hauser <vh@thc.org> | 2023-12-05 17:56:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-05 17:56:06 +0100 |
commit | 12505861564c5a3b91220adbb944032a261d6fa4 (patch) | |
tree | 6e66ac8cbdd8237009c24b6f6b51d5f48913ce54 /include/afl-fuzz.h | |
parent | 61e27c6b54f7641a168b6acc6ecffb1754c10918 (diff) | |
parent | 638273e4f80ba89ada8a4428a6211ee6b59d964a (diff) | |
download | afl++-12505861564c5a3b91220adbb944032a261d6fa4.tar.gz |
Merge pull request #1923 from AFLplusplus/dev
push to stable
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..f1813df6 100644 --- a/include/afl-fuzz.h +++ b/include/afl-fuzz.h @@ -345,6 +345,7 @@ enum { /* 13 */ PY_FUNC_DESCRIBE, /* 14 */ PY_FUNC_FUZZ_SEND, /* 15 */ PY_FUNC_SPLICE_OPTOUT, + /* 16 */ PY_FUNC_POST_RUN, PY_FUNC_COUNT }; @@ -1021,6 +1022,16 @@ 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 + */ + void (*afl_custom_post_run)(void *data); + + /** * Allow for additional analysis (e.g. calling a different tool that does a * different kind of coverage and saves this for the custom mutator). * @@ -1075,6 +1086,7 @@ void finalize_py_module(void *); u32 fuzz_count_py(void *, const u8 *, size_t); void fuzz_send_py(void *, const u8 *, size_t); +void post_run_py(void *); size_t post_process_py(void *, u8 *, size_t, u8 **); s32 init_trim_py(void *, u8 *, size_t); s32 post_trim_py(void *, u8); |