mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-08 16:21:32 +00:00
Changes to remove hard-coding of MAP_SIZE_POW2 when inline instrumentation is disabled
This commit is contained in:
parent
cfbff436a5
commit
d2d7585db5
@ -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));
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user