diff options
author | Dominik Maier <domenukk@gmail.com> | 2020-03-28 04:57:44 +0100 |
---|---|---|
committer | Dominik Maier <domenukk@gmail.com> | 2020-03-28 04:57:44 +0100 |
commit | 53fd8fe6ea6aa07247444dedc33e3b2491ec2334 (patch) | |
tree | 7aef4f2717407f0fd198c7c82b29e09fe44a9c5d /src/afl-fuzz-run.c | |
parent | 0059d167310911976a2ee5e89204d3d9f0fc5409 (diff) | |
download | afl++-53fd8fe6ea6aa07247444dedc33e3b2491ec2334.tar.gz |
more custom mutator remodelling
Diffstat (limited to 'src/afl-fuzz-run.c')
-rw-r--r-- | src/afl-fuzz-run.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/afl-fuzz-run.c b/src/afl-fuzz-run.c index a43bfad2..9ba2c5f7 100644 --- a/src/afl-fuzz-run.c +++ b/src/afl-fuzz-run.c @@ -741,8 +741,13 @@ u8 common_fuzz_stuff(afl_state_t *afl, u8 *out_buf, u32 len) { if (afl->post_handler) { - out_buf = afl->post_handler(out_buf, &len); - if (!out_buf || !len) return 0; + u8 *post_buf = NULL; + + size_t post_len = + afl->post_handler(afl->post_data, out_buf, len, &post_buf); + if (!post_buf || !post_len) return 0; + out_buf = post_buf; + len = post_len; } |