mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-10-19 18:12:14 -09:00
Merge branch 'GP-0_emteere_PR-2157_astrelsky_mipsAddressAnalyzer' into Ghidra_9.2
This commit is contained in:
@@ -349,7 +349,13 @@ public class MipsAddressAnalyzer extends ConstantPropagationAnalyzer {
|
||||
BigInteger val = context.getValue(reg, false);
|
||||
if (val != null) {
|
||||
long lval = val.longValue();
|
||||
Address refAddr = instr.getMinAddress().getNewAddress(lval);
|
||||
Address refAddr = null;
|
||||
try {
|
||||
refAddr = instr.getMinAddress().getNewAddress(lval);
|
||||
} catch (AddressOutOfBoundsException e) {
|
||||
// invalid reference
|
||||
return;
|
||||
}
|
||||
if ((lval > 4096 || lval < 0) && lval != 0xffff &&
|
||||
program.getMemory().contains(refAddr)) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user