aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2019-09-05 10:10:25 +0200
committervan Hauser <vh@thc.org>2019-09-05 10:10:25 +0200
commit760416c1a0a4e3f3261dfee01c3fe11101c4b4ff (patch)
tree32721f67768a4fa12162211e1d7d8485f9e5b4fc /include
parent5955dd4e25c9f7dd46e19ea246b14734822d1759 (diff)
downloadAFLplusplus-760416c1a0a4e3f3261dfee01c3fe11101c4b4ff.tar.gz
small adjustments for custom mutator
Diffstat (limited to 'include')
-rw-r--r--include/afl-fuzz.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/include/afl-fuzz.h b/include/afl-fuzz.h
index 86b97c12..a04402ef 100644
--- a/include/afl-fuzz.h
+++ b/include/afl-fuzz.h
@@ -426,20 +426,24 @@ u8* (*post_handler)(u8* buf, u32* len);
* @param data Input data to be mutated
* @param size Size of input data
* @param mutated_out Buffer to store the mutated input
- * @param max_size Maximum size of the mutated output. The mutation must not produce data larger than max_size.
- * @param seed Seed used for the mutation. The mutation should produce the same output given the same seed.
+ * @param max_size Maximum size of the mutated output. The mutation must not
+ * produce data larger than max_size.
+ * @param seed Seed used for the mutation. The mutation should produce the same
+ * output given the same seed.
* @return Size of the mutated output.
*/
-size_t (*custom_mutator)(u8 *data, size_t size, u8* mutated_out, size_t max_size, unsigned int seed);
+size_t (*custom_mutator)(u8* data, size_t size, u8* mutated_out,
+ size_t max_size, unsigned int seed);
/**
- * A post-processing function to use right before AFL writes the test case to disk in order to execute the target.
- * If this functionality is not needed, Simply don't define this function.
+ * A post-processing function to use right before AFL writes the test case to
+ * disk in order to execute the target. If this functionality is not needed,
+ * Simply don't define this function.
* @param data Buffer containing the test case to be executed.
* @param size Size of the test case.
* @param new_data Buffer to store the test case after processing
* @return Size of data after processing.
*/
-size_t (*pre_save_handler)(u8 *data, size_t size, u8 **new_data);
+size_t (*pre_save_handler)(u8* data, size_t size, u8** new_data);
/* Interesting values, as per config.h */