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/honggfuzz/honggfuzz.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/honggfuzz/honggfuzz.c')
-rw-r--r-- | custom_mutators/honggfuzz/honggfuzz.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/custom_mutators/honggfuzz/honggfuzz.c b/custom_mutators/honggfuzz/honggfuzz.c index d7b3c9c5..0dd59aee 100644 --- a/custom_mutators/honggfuzz/honggfuzz.c +++ b/custom_mutators/honggfuzz/honggfuzz.c @@ -3,14 +3,14 @@ #include <stdlib.h> #include <string.h> -#include "custom_mutator_helpers.h" +#include "afl-fuzz.h" #include "mangle.h" #define NUMBER_OF_MUTATIONS 5 -uint8_t * queue_input; +uint8_t *queue_input; size_t queue_input_size; -afl_state_t * afl_struct; +afl_state_t *afl_struct; run_t run; honggfuzz_t global; struct _dynfile_t dynfile; @@ -18,8 +18,8 @@ struct _dynfile_t dynfile; typedef struct my_mutator { afl_state_t *afl; - run_t * run; - u8 * mutator_buf; + run_t *run; + u8 *mutator_buf; unsigned int seed; unsigned int extras_cnt, a_extras_cnt; @@ -65,9 +65,9 @@ my_mutator_t *afl_custom_init(afl_state_t *afl, unsigned int seed) { /* When a new queue entry is added we check if there are new dictionary entries to add to honggfuzz structure */ -uint8_t afl_custom_queue_new_entry(my_mutator_t * data, - const uint8_t *filename_new_queue, - const uint8_t *filename_orig_queue) { +void afl_custom_queue_new_entry(my_mutator_t *data, + const uint8_t *filename_new_queue, + const uint8_t *filename_orig_queue) { if (run.global->mutate.dictionaryCnt >= 1024) return; @@ -97,7 +97,7 @@ uint8_t afl_custom_queue_new_entry(my_mutator_t * data, } - return 0; + return; } |