diff options
author | Andrea Fioraldi <andreafioraldi@gmail.com> | 2020-03-06 16:53:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-06 16:53:10 +0100 |
commit | 47fdbf38173b07e8b71704d951574eb49fc46e17 (patch) | |
tree | ee5ec6f52d4e28d37dc126ab5917ecdb0874eedd /examples/custom_mutators | |
parent | 1d4a3c87f5473c218e047a9ff949bcbc3460763e (diff) | |
parent | c18f6c2618bd247b77efeaf51562cc63872b5d2a (diff) | |
download | afl++-47fdbf38173b07e8b71704d951574eb49fc46e17.tar.gz |
Merge pull request #235 from antonio-morales/patch-1
Fixing 2 little mistakes
Diffstat (limited to 'examples/custom_mutators')
-rw-r--r-- | examples/custom_mutators/example.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/custom_mutators/example.c b/examples/custom_mutators/example.c index 63e4d6da..63201e23 100644 --- a/examples/custom_mutators/example.c +++ b/examples/custom_mutators/example.c @@ -53,7 +53,7 @@ size_t afl_custom_fuzz(uint8_t *buf, size_t buf_size, // Mutate the payload of the packet for (int i = 3; i < mutated_size; i++) { - mutated_out[i] = (data[i] + rand() % 10) & 0xff; + mutated_out[i] = (buf[i] + rand() % 10) & 0xff; } @@ -90,7 +90,7 @@ size_t afl_custom_pre_save(uint8_t *buf, size_t buf_size, uint8_t **out_buf) { } uint8_t *trim_buf; -size_t trim_buf_size +size_t trim_buf_size; int trimmming_steps; int cur_step; |