diff options
| author | van Hauser <vh@thc.org> | 2021-08-12 18:55:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-12 18:55:40 +0200 |
| commit | b8fd0a1463fe5805d22f323777b65b7b2e2fcf46 (patch) | |
| tree | 119ab732665da26bf8e72f3c0f82147041df2087 /frida_mode/src/instrument | |
| parent | 20815d68502f288d3939a39b91f6de1e58220e18 (diff) | |
| parent | cacee58fb70e11fe463598077fe362ba76cd2101 (diff) | |
| download | afl++-b8fd0a1463fe5805d22f323777b65b7b2e2fcf46.tar.gz | |
Merge pull request #1065 from WorksButNotTested/fixes
Fixes
Diffstat (limited to 'frida_mode/src/instrument')
| -rw-r--r-- | frida_mode/src/instrument/instrument.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frida_mode/src/instrument/instrument.c b/frida_mode/src/instrument/instrument.c index 67aafa5a..fddff19a 100644 --- a/frida_mode/src/instrument/instrument.c +++ b/frida_mode/src/instrument/instrument.c @@ -116,8 +116,8 @@ __attribute__((hot)) static void on_basic_block(GumCpuContext *context, } - instrument_previous_pc = - ((current_pc & (MAP_SIZE - 1) >> 1)) | ((current_pc & 0x1) << 15); + instrument_previous_pc = ((current_pc & (MAP_SIZE - 1) >> 1)) | + ((current_pc & 0x1) << (MAP_SIZE_POW2 - 1)); } |
