Skip to content

Commit 47fdbf3

Browse files
Merge pull request AFLplusplus#235 from antonio-morales/patch-1
Fixing 2 little mistakes
2 parents 1d4a3c8 + c18f6c2 commit 47fdbf3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/custom_mutators/example.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ size_t afl_custom_fuzz(uint8_t *buf, size_t buf_size,
5353
// Mutate the payload of the packet
5454
for (int i = 3; i < mutated_size; i++) {
5555

56-
mutated_out[i] = (data[i] + rand() % 10) & 0xff;
56+
mutated_out[i] = (buf[i] + rand() % 10) & 0xff;
5757

5858
}
5959

@@ -90,7 +90,7 @@ size_t afl_custom_pre_save(uint8_t *buf, size_t buf_size, uint8_t **out_buf) {
9090
}
9191

9292
uint8_t *trim_buf;
93-
size_t trim_buf_size
93+
size_t trim_buf_size;
9494
int trimmming_steps;
9595
int cur_step;
9696

0 commit comments

Comments
 (0)