diff options
author | van Hauser <vh@thc.org> | 2022-08-04 21:36:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-04 21:36:59 +0200 |
commit | 4b9c560b07e1ea42633b59e0eb94f7a3f0fe0c58 (patch) | |
tree | a00dcc353fd4add31a2c1e75bc2a4ac79419570c /frida_mode/src/instrument/instrument_x64.c | |
parent | 6056d4b140f0665c6a701cada9166379be3435ac (diff) | |
parent | 9d5a2d1b8e6f4ead25a857d106b37fd85950aff3 (diff) | |
download | AFLplusplus-4b9c560b07e1ea42633b59e0eb94f7a3f0fe0c58.tar.gz |
Merge pull request #1486 from WorksButNotTested/be8
Be8
Diffstat (limited to 'frida_mode/src/instrument/instrument_x64.c')
-rw-r--r-- | frida_mode/src/instrument/instrument_x64.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/frida_mode/src/instrument/instrument_x64.c b/frida_mode/src/instrument/instrument_x64.c index 9d754082..13ced4a3 100644 --- a/frida_mode/src/instrument/instrument_x64.c +++ b/frida_mode/src/instrument/instrument_x64.c @@ -469,6 +469,7 @@ gpointer instrument_cur(GumStalkerOutput *output) { } void instrument_write_regs(GumCpuContext *cpu_context, gpointer user_data) { + int fd = (int)(size_t)user_data; instrument_regs_format( fd, "rax: 0x%016x, rbx: 0x%016x, rcx: 0x%016x, rdx: 0x%016x\n", @@ -483,6 +484,7 @@ void instrument_write_regs(GumCpuContext *cpu_context, gpointer user_data) { fd, "r12: 0x%016x, r13: 0x%016x, r14: 0x%016x, r15: 0x%016x\n", cpu_context->r12, cpu_context->r13, cpu_context->r14, cpu_context->r15); instrument_regs_format(fd, "rip: 0x%016x\n\n", cpu_context->rip); + } #endif |