aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2023-01-19 11:52:19 +0100
committervanhauser-thc <vh@thc.org>2023-01-19 11:52:19 +0100
commiteeca3a0b2939c605497e9b3a615ee4a466f4a3f2 (patch)
tree55e9abbb9ffc0c0388f7d45fc4d6d404aad0e3ee /include
parent151a8facae2048a26c65658dfec507233a677fb0 (diff)
downloadafl++-eeca3a0b2939c605497e9b3a615ee4a466f4a3f2.tar.gz
lots of fixes
Diffstat (limited to 'include')
-rw-r--r--include/afl-fuzz.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/afl-fuzz.h b/include/afl-fuzz.h
index 1e8d085d..229bc025 100644
--- a/include/afl-fuzz.h
+++ b/include/afl-fuzz.h
@@ -844,15 +844,16 @@ struct custom_mutator {
/**
* Perform custom mutations on a given input
*
- * (Optional for now. Required in the future)
+ * (Optional)
*
- * @param data pointer returned in afl_custom_init by this custom mutator
+ * Getting an add_buf can be skipped by using afl_custom_splice_optout().
+ *
+ * @param[in] data Pointer returned in afl_custom_init by this custom mutator
* @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[out] out_buf The new buffer, under your memory mgmt.
+ * @param[in] add_buf Buffer containing an additional test case (splicing)
* @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.