diff options
author | van Hauser <vh@thc.org> | 2023-04-26 16:33:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-26 16:33:42 +0200 |
commit | 7ca1b85c5e8229fa49620d0fb542c86965ef5abb (patch) | |
tree | 49357cab6a9fea70f30f43b129b02434772f5e66 /custom_mutators/radamsa/radamsa-mutator.c | |
parent | dbb317162415a28e3fd2ff4c574292c924493a00 (diff) | |
parent | b18bc7b98fa23ef805ed2ee3eec04dc1929afd49 (diff) | |
download | afl++-7ca1b85c5e8229fa49620d0fb542c86965ef5abb.tar.gz |
Merge pull request #1715 from AFLplusplus/dev
push to stable
Diffstat (limited to 'custom_mutators/radamsa/radamsa-mutator.c')
-rw-r--r-- | custom_mutators/radamsa/radamsa-mutator.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/custom_mutators/radamsa/radamsa-mutator.c b/custom_mutators/radamsa/radamsa-mutator.c index 624ace3d..466bb5c3 100644 --- a/custom_mutators/radamsa/radamsa-mutator.c +++ b/custom_mutators/radamsa/radamsa-mutator.c @@ -1,6 +1,5 @@ // This simple example just creates random buffer <= 100 filled with 'A' // needs -I /path/to/AFLplusplus/include -//#include "custom_mutator_helpers.h" #include <stdint.h> #include <stdlib.h> @@ -8,19 +7,17 @@ #include <stdio.h> #include "radamsa.h" -#include "custom_mutator_helpers.h" +#include "afl-fuzz.h" typedef struct my_mutator { - afl_t *afl; - - u8 *mutator_buf; - + afl_state_t *afl; + u8 *mutator_buf; unsigned int seed; } 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) { srand(seed); my_mutator_t *data = calloc(1, sizeof(my_mutator_t)); |