diff options
author | hexcoder- <heiko@hexco.de> | 2020-03-28 12:16:01 +0100 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2020-03-28 12:16:01 +0100 |
commit | 6ac40e2cc5edab506d716e33f0cba356690a30c6 (patch) | |
tree | af02917d3857f49d804ecd5a1d29374ff62d4209 /include/afl-fuzz.h | |
parent | 5625e059e1ca99bb6f82a619063cf9aebfdd0a95 (diff) | |
parent | 11767bec0e567db943e612b22d9ef4e25682b2b9 (diff) | |
download | afl++-6ac40e2cc5edab506d716e33f0cba356690a30c6.tar.gz |
Merge branch 'dev' of https://github.com/vanhauser-thc/AFLplusplus into dev
Diffstat (limited to 'include/afl-fuzz.h')
-rw-r--r-- | include/afl-fuzz.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/afl-fuzz.h b/include/afl-fuzz.h index 5f9891bc..79878cb6 100644 --- a/include/afl-fuzz.h +++ b/include/afl-fuzz.h @@ -649,14 +649,16 @@ struct custom_mutator { * (Optional for now. Required in the future) * * @param data pointer returned in afl_custom_init for this fuzz case - * @param[inout] buf Pointer to the input data to be mutated and the mutated + * @param[in] buf Pointer to the input data to be mutated and the mutated * output * @param[in] buf_size Size of the input/output data + * @param[out] out_buf the new buffer. We may reuse *buf if large enough. + * *out_buf = NULL is treated as FATAL. * @param[in] add_buf Buffer containing the additional test case * @param[in] add_buf_size Size of the additional test case * @param[in] max_size Maximum size of the mutated output. The mutation must * not produce data larger than max_size. - * @return Size of the mutated output. Negative on error will abort exeuction. + * @return Size of the mutated output. */ size_t (*afl_custom_fuzz)(void *data, u8 *buf, size_t buf_size, u8 **out_buf, u8 *add_buf, size_t add_buf_size, size_t max_size); |