Gp-3178 fixed AddressOutOfBoundsException when rebasing with pinned

symbols
This commit is contained in:
ghidragon 2023-03-14 14:47:37 -04:00
parent 738e662e82
commit 2cb37fc303
2 changed files with 14 additions and 12 deletions

View file

@ -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);