diff options
author | van Hauser <vh@thc.org> | 2020-11-10 14:08:21 +0100 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-11-10 14:08:21 +0100 |
commit | 8e1047f5efaece663bba9b8ef86d181198db5101 (patch) | |
tree | c2c2b38af0833f815a6b28b0c435fbe19fc65344 /docs/custom_mutators.md | |
parent | 166130324898071a08e178dfeb901af44168236e (diff) | |
download | afl++-8e1047f5efaece663bba9b8ef86d181198db5101.tar.gz |
support custom mutator introspection
Diffstat (limited to 'docs/custom_mutators.md')
-rw-r--r-- | docs/custom_mutators.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/custom_mutators.md b/docs/custom_mutators.md index 81ee9de4..2516e511 100644 --- a/docs/custom_mutators.md +++ b/docs/custom_mutators.md @@ -42,6 +42,7 @@ size_t afl_custom_havoc_mutation(void *data, unsigned char *buf, size_t buf_size unsigned char afl_custom_havoc_mutation_probability(void *data); unsigned char afl_custom_queue_get(void *data, const unsigned char *filename); void afl_custom_queue_new_entry(void *data, const unsigned char *filename_new_queue, const unsigned int *filename_orig_queue); +const char* afl_custom_introspection(my_mutator_t *data); void afl_custom_deinit(void *data); ``` @@ -81,6 +82,9 @@ def queue_new_entry(filename_new_queue, filename_orig_queue): pass ``` +def introspection(): + return string + ### Custom Mutation - `init`: @@ -130,6 +134,12 @@ def queue_new_entry(filename_new_queue, filename_orig_queue): This methods is called after adding a new test case to the queue. +- `introspection` (optional): + + This method is called after a new queue entry, crash or timeout is + discovered if compiled with INTROSPECTION. The custom mutator can then + return a string (const char *) that reports the exact mutations used. + - `deinit`: The last method to be called, deinitializing the state. |