enhance examples

This commit is contained in:
vanhauser-thc
2023-01-19 17:24:56 +01:00
parent 86d3c65559
commit 628b4b6002
4 changed files with 23 additions and 4 deletions

View File

@ -6,7 +6,7 @@
Dominik Maier <mail@dmnk.co>
*/
// You need to use -I /path/to/AFLplusplus/include
// You need to use -I/path/to/AFLplusplus/include -I.
#include "custom_mutator_helpers.h"
#include <stdint.h>
@ -118,6 +118,8 @@ size_t afl_custom_fuzz(my_mutator_t *data, uint8_t *buf, size_t buf_size,
}
if (max_size > mutated_size) { mutated_size = max_size; }
*out_buf = mutated_out;
return mutated_size;