diff options
| author | van Hauser <vh@thc.org> | 2022-11-24 00:58:25 +0100 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-24 00:58:25 +0100 | 
| commit | 28af7cb9bdea3ff55e078464be6a0ebdd8a7fa48 (patch) | |
| tree | 2ac53deecfd9774c5d146a2b8ac81b78896d7b1c /frida_mode/src | |
| parent | 4124a272d821629adce648fb37ca1e7f0ce0e84f (diff) | |
| parent | 9734d0b3c09b3d604941d43fd96454100349d8b1 (diff) | |
| download | afl++-28af7cb9bdea3ff55e078464be6a0ebdd8a7fa48.tar.gz | |
Merge pull request #1593 from WorksButNotTested/arm
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; } | 
