diff options
author | WorksButNotTested <62701594+WorksButNotTested@users.noreply.github.com> | 2021-07-14 08:48:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-14 09:48:37 +0200 |
commit | 94999782f1a3742e3e755a66f5d76e84573ae6ef (patch) | |
tree | 9c2b40fae4587455e7feadb321d8a2ab3b5c1d96 /frida_mode/hook/qemu_hook.c | |
parent | 7cec158b0eb9b09160e58b289093cf615e2ca429 (diff) | |
download | afl++-94999782f1a3742e3e755a66f5d76e84573ae6ef.tar.gz |
Improved block and edge numbering to reduce collisions (#1021)
Co-authored-by: Your Name <you@example.com>
Diffstat (limited to 'frida_mode/hook/qemu_hook.c')
-rw-r--r-- | frida_mode/hook/qemu_hook.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/frida_mode/hook/qemu_hook.c b/frida_mode/hook/qemu_hook.c index 5b4f65b1..56e787e3 100644 --- a/frida_mode/hook/qemu_hook.c +++ b/frida_mode/hook/qemu_hook.c @@ -36,6 +36,7 @@ struct x86_64_regs { void afl_persistent_hook(struct x86_64_regs *regs, uint64_t guest_base, uint8_t *input_buf, uint32_t input_buf_len) { + (void)guest_base; /* unused */ memcpy((void *)regs->rdi, input_buf, input_buf_len); regs->rsi = input_buf_len; @@ -75,6 +76,7 @@ struct x86_regs { void afl_persistent_hook(struct x86_regs *regs, uint64_t guest_base, uint8_t *input_buf, uint32_t input_buf_len) { + (void)guest_base; /* unused */ void **esp = (void **)regs->esp; void * arg1 = esp[1]; void **arg2 = &esp[2]; @@ -175,6 +177,7 @@ struct arm64_regs { void afl_persistent_hook(struct arm64_regs *regs, uint64_t guest_base, uint8_t *input_buf, uint32_t input_buf_len) { + (void)guest_base; /* unused */ memcpy((void *)regs->x0, input_buf, input_buf_len); regs->x1 = input_buf_len; } |