diff options
| author | Your Name <you@example.com> | 2022-11-23 18:18:26 +0000 |
|---|---|---|
| committer | Your Name <you@example.com> | 2022-11-23 18:18:26 +0000 |
| commit | 9734d0b3c09b3d604941d43fd96454100349d8b1 (patch) | |
| tree | 2ac53deecfd9774c5d146a2b8ac81b78896d7b1c /frida_mode/src | |
| parent | 4124a272d821629adce648fb37ca1e7f0ce0e84f (diff) | |
| download | afl++-9734d0b3c09b3d604941d43fd96454100349d8b1.tar.gz | |
Fixes to make things easier to build for ARM
Diffstat (limited to 'frida_mode/src')
| -rw-r--r-- | frida_mode/src/instrument/instrument_arm32.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/frida_mode/src/instrument/instrument_arm32.c b/frida_mode/src/instrument/instrument_arm32.c index cb2a322b..84dbb3be 100644 --- a/frida_mode/src/instrument/instrument_arm32.c +++ b/frida_mode/src/instrument/instrument_arm32.c @@ -273,7 +273,15 @@ void instrument_flush(GumStalkerOutput *output) { gpointer instrument_cur(GumStalkerOutput *output) { - return gum_arm_writer_cur(output->writer.arm); + gpointer curr = NULL; + + if (output->encoding == GUM_INSTRUCTION_SPECIAL) { + curr = gum_thumb_writer_cur(output->writer.thumb); + } else { + curr = gum_arm_writer_cur(output->writer.arm); + } + + return curr; } |
