mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 10:19:23 +02:00
Gp-3178 fixed AddressOutOfBoundsException when rebasing with pinned
symbols
This commit is contained in:
parent
738e662e82
commit
2cb37fc303
2 changed files with 14 additions and 12 deletions
|
@ -2448,7 +2448,7 @@ public class SymbolManager implements SymbolTable, ManagerDB {
|
|||
Set<Address> primaryFixups = new HashSet<>();
|
||||
for (SymbolDB symbol : fixupPinnedSymbols) {
|
||||
Address currentAddress = symbol.getAddress();
|
||||
Address beforeBaseChangeAddress = oldBase.add(currentAddress.subtract(base));
|
||||
Address beforeBaseChangeAddress = oldBase.addWrap(currentAddress.subtract(base));
|
||||
primaryFixups.add(currentAddress);
|
||||
primaryFixups.add(beforeBaseChangeAddress);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue