Skip to content

Commit e12acaa

Browse files
committed
fix custom mutator C examples
1 parent 8f6d9d6 commit e12acaa

File tree

7 files changed

+73
-499
lines changed

7 files changed

+73
-499
lines changed

custom_mutators/examples/custom_mutator_helpers.h

Lines changed: 0 additions & 342 deletions
This file was deleted.

custom_mutators/examples/custom_send.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@
1010
// afl-fuzz -i in -o out -- ./test-instr -f /tmp/foo
1111
//
1212

13-
#include "custom_mutator_helpers.h"
14-
1513
#include <stdio.h>
1614
#include <stdint.h>
1715
#include <stdlib.h>
1816
#include <unistd.h>
1917
#include <fcntl.h>
2018

19+
#include "afl-fuzz.h"
20+
2121
typedef struct my_mutator {
2222

23-
afl_t *afl;
23+
afl_state_t *afl;
2424

2525
} my_mutator_t;
2626

27-
my_mutator_t *afl_custom_init(afl_t *afl, unsigned int seed) {
27+
my_mutator_t *afl_custom_init(afl_state_t *afl, unsigned int seed) {
2828

2929
my_mutator_t *data = calloc(1, sizeof(my_mutator_t));
3030
if (!data) {

0 commit comments

Comments
 (0)