mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-01-09 14:08:03 -05:00
Merge remote-tracking branch 'origin/patch' into Ghidra_12.0
This commit is contained in:
@@ -567,8 +567,8 @@ public class CreateThunkFunctionCmd extends BackgroundCommand<Program> {
|
||||
// if there is no pcode, go to the next instruction
|
||||
// assume fallthrough (ie. x86 instruction ENDBR64)
|
||||
// TODO: at some point, might need to do a NOP detection
|
||||
while (instr != null && instr.getPcode().length == 0) {
|
||||
instr = listing.getInstructionAfter(instr.getAddress());
|
||||
if (instr != null && instr.getPcode().length == 0) {
|
||||
instr = listing.getInstructionAfter(entry);
|
||||
}
|
||||
if (instr == null) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user