diff options
author | vanhauser-thc <vh@thc.org> | 2023-04-15 10:12:20 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2023-04-15 10:12:20 +0200 |
commit | e12acaa20367f335549c2db97b88ac5c8ffbeab7 (patch) | |
tree | 8afe53a861c046f111370d457a2c46f82de8b2fd /custom_mutators/examples/custom_send.c | |
parent | 8f6d9d66ef96286661dab876d9b57a36982b2a4d (diff) | |
download | afl++-e12acaa20367f335549c2db97b88ac5c8ffbeab7.tar.gz |
fix custom mutator C examples
Diffstat (limited to 'custom_mutators/examples/custom_send.c')
-rw-r--r-- | custom_mutators/examples/custom_send.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/custom_mutators/examples/custom_send.c b/custom_mutators/examples/custom_send.c index 7de72819..9cc4b160 100644 --- a/custom_mutators/examples/custom_send.c +++ b/custom_mutators/examples/custom_send.c @@ -10,21 +10,21 @@ // afl-fuzz -i in -o out -- ./test-instr -f /tmp/foo // -#include "custom_mutator_helpers.h" - #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <unistd.h> #include <fcntl.h> +#include "afl-fuzz.h" + typedef struct my_mutator { - afl_t *afl; + afl_state_t *afl; } my_mutator_t; -my_mutator_t *afl_custom_init(afl_t *afl, unsigned int seed) { +my_mutator_t *afl_custom_init(afl_state_t *afl, unsigned int seed) { my_mutator_t *data = calloc(1, sizeof(my_mutator_t)); if (!data) { |