mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
GP-863 Search for Image Base Script - fixed subtraction issue
This commit is contained in:
parent
bc561a5bbd
commit
0b2991efd6
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ public class SearchForImageBaseOffsetsScript extends GhidraScript {
|
|||
long currentAddressOffset = currentAddress.getOffset();
|
||||
long imageBaseOffset = imageBase.getOffset();
|
||||
|
||||
long currentAddressIbo = imageBaseOffset ^ currentAddressOffset;
|
||||
long currentAddressIbo = currentAddressOffset - imageBaseOffset;
|
||||
|
||||
byte searchBytes[] =
|
||||
createSearchArray(currentAddressIbo, POINTER_BYTE_LEN_64BIT, isBigEndian);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue