mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 02:58:08 +00:00
docu
This commit is contained in:
@ -126,17 +126,14 @@ size_t afl_custom_fuzz(my_mutator_t *data, uint8_t **buf, size_t buf_size,
|
|||||||
* @param[in] data pointer returned in afl_custom_init for this fuzz case
|
* @param[in] data pointer returned in afl_custom_init for this fuzz case
|
||||||
* @param[in] buf Buffer containing the test case to be executed
|
* @param[in] buf Buffer containing the test case to be executed
|
||||||
* @param[in] buf_size Size of the test case
|
* @param[in] buf_size Size of the test case
|
||||||
* @param[in] out_buf Pointer to the buffer containing the test case after
|
* @param[out] out_buf Pointer to the buffer containing the test case after
|
||||||
* processing. External library should allocate memory for out_buf. AFL++
|
* processing. External library should allocate memory for out_buf.
|
||||||
* will release the memory after saving the test case.
|
* The buf pointer may be reused (up to the given buf_size);
|
||||||
* out_buf will always be at least as large as buf.
|
|
||||||
* @param[in] out_buf_size The maximum size we may use.
|
|
||||||
* In case we need to have this bigger, simply return that.
|
|
||||||
* @return Size of the output buffer after processing or the needed amount.
|
* @return Size of the output buffer after processing or the needed amount.
|
||||||
* return 0 to indicate the original buf should be used.
|
* A return smaller 1 indicates an error.
|
||||||
*/
|
*/
|
||||||
size_t afl_custom_pre_save(my_mutator_t *data, uint8_t *buf, size_t buf_size,
|
size_t afl_custom_pre_save(my_mutator_t *data, uint8_t *buf, size_t buf_size,
|
||||||
uint8_t *out_buf, size_t out_buf_size) {
|
uint8_t **out_buf) {
|
||||||
|
|
||||||
if (data->pre_save_size < buf_size + 5) {
|
if (data->pre_save_size < buf_size + 5) {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user