From 749fdbb556ea8dcae558572bb618b43f8866a1b7 Mon Sep 17 00:00:00 2001 From: ghidra1 Date: Mon, 19 May 2025 12:39:32 -0400 Subject: [PATCH] GP-0 Correction to GP-5619 regression --- .../main/java/ghidra/program/database/code/InstructionDB.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/code/InstructionDB.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/code/InstructionDB.java index f1be3ba5ee..9bec2ce37c 100644 --- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/code/InstructionDB.java +++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/code/InstructionDB.java @@ -938,7 +938,7 @@ public class InstructionDB extends CodeUnitDB implements Instruction, Instructio FlowType myFlowType = getFlowType(); // getFlowType will validate if (myFlowType.hasFallthrough()) { try { - return getAddress().addNoWrap(proto.getFallThroughOffset(this)); + return address.addNoWrap(getDefaultFallThroughOffset()); } catch (AddressOverflowException e) { // ignore @@ -950,7 +950,7 @@ public class InstructionDB extends CodeUnitDB implements Instruction, Instructio @Override public int getDefaultFallThroughOffset() { if (proto.getDelaySlotByteCount() <= 0) { - return getLength(); + return proto.getLength(); } lock.acquire(); try {