mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
GP-3599 Fix for function bodies including one byte of non-disassembled
data. PowerPC disassembly from computed branch.
This commit is contained in:
@@ -226,7 +226,9 @@ public class PowerPCAddressAnalyzer extends ConstantPropagationAnalyzer {
|
||||
public boolean evaluateReference(VarnodeContext context, Instruction instr,
|
||||
int pcodeop, Address address, int size, DataType dataType, RefType refType) {
|
||||
|
||||
if (instr.getFlowType().isJump()) {
|
||||
if (refType.isJump() && refType.isComputed() &&
|
||||
program.getMemory().contains(address) && address.getOffset() != 0) {
|
||||
super.evaluateReference(context, instr, pcodeop, address, size, dataType, refType);
|
||||
// for branching instructions, if we have a good target, mark it
|
||||
// if this isn't straight code (thunk computation), let someone else lay down the reference
|
||||
return !symEval.encounteredBranch();
|
||||
|
||||
Reference in New Issue
Block a user