diff options
author | Your Name <you@example.com> | 2022-10-11 18:15:51 +0100 |
---|---|---|
committer | Your Name <you@example.com> | 2022-10-11 18:15:51 +0100 |
commit | 7461c52278ff3a96ebc4d71d369d3a8b24fd19b1 (patch) | |
tree | 8b475c0772ec6603341aadc31e458d55cc601fbf /frida_mode/hook/frida_hook.c | |
parent | fac6491ad0bbaee078352990eeb708d82aa412e3 (diff) | |
download | afl++-7461c52278ff3a96ebc4d71d369d3a8b24fd19b1.tar.gz |
Fixes for x64
Diffstat (limited to 'frida_mode/hook/frida_hook.c')
-rw-r--r-- | frida_mode/hook/frida_hook.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/frida_mode/hook/frida_hook.c b/frida_mode/hook/frida_hook.c index 79e2348d..da1a59b2 100644 --- a/frida_mode/hook/frida_hook.c +++ b/frida_mode/hook/frida_hook.c @@ -54,10 +54,12 @@ __attribute__((visibility("default"))) void afl_persistent_hook( __attribute__((visibility("default"))) void afl_persistent_hook( GumCpuContext *regs, uint8_t *input_buf, uint32_t input_buf_len) { + // do a length check matching the target! memcpy((void *)regs->r[0], input_buf, input_buf_len); regs->r[1] = input_buf_len; + } #else |