about summary refs log tree commit diff
path: root/custom_mutators/radamsa
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2023-04-25 14:54:38 +0200
committervanhauser-thc <vh@thc.org>2023-04-25 14:54:38 +0200
commitf3dc56f59a25eca60666393b43e0eef4811ac825 (patch)
tree7f4b76d00d41647bb828cfa237f972c5ddd8f638 /custom_mutators/radamsa
parentd822181467ec41f1ee2d840c3c5b1918c72ffc86 (diff)
downloadafl++-f3dc56f59a25eca60666393b43e0eef4811ac825.tar.gz
update custom mutators
Diffstat (limited to 'custom_mutators/radamsa')
-rw-r--r--custom_mutators/radamsa/radamsa-mutator.c11
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));