aboutsummaryrefslogtreecommitdiff
path: root/frida_mode/hook
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2024-06-13 09:20:42 +0200
committerGitHub <noreply@github.com>2024-06-13 09:20:42 +0200
commit36db3428ab16156dd72196213d2a02a5eadaed11 (patch)
tree619b14542f1f9495360b024492898d6f6b819f92 /frida_mode/hook
parent9f6b012fbfc8b79dda83e73a208e429aaf25e7ee (diff)
parente7da8b9d6bf20b1cac960b1eccf3beac3fbf7901 (diff)
downloadafl++-36db3428ab16156dd72196213d2a02a5eadaed11.tar.gz
Merge pull request #2123 from AFLplusplus/dev
push to stable
Diffstat (limited to 'frida_mode/hook')
-rw-r--r--frida_mode/hook/frida_hook.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/frida_mode/hook/frida_hook.c b/frida_mode/hook/frida_hook.c
index da1a59b2..59a92e7e 100644
--- a/frida_mode/hook/frida_hook.c
+++ b/frida_mode/hook/frida_hook.c
@@ -31,8 +31,8 @@ __attribute__((visibility("default"))) void afl_persistent_hook(
// do a length check matching the target!
void **esp = (void **)regs->esp;
- void *arg1 = esp[0];
- void **arg2 = &esp[1];
+ void *arg1 = esp[1];
+ void **arg2 = &esp[2];
memcpy(arg1, input_buf, input_buf_len);
*arg2 = (void *)input_buf_len;