mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 01:39:21 +02:00
GP-5526 Simplified fix for CreateThunkFunctionCmd
This commit is contained in:
parent
cae8caac14
commit
9a20684330
1 changed files with 2 additions and 2 deletions
|
@ -567,8 +567,8 @@ public class CreateThunkFunctionCmd extends BackgroundCommand<Program> {
|
||||||
// if there is no pcode, go to the next instruction
|
// if there is no pcode, go to the next instruction
|
||||||
// assume fallthrough (ie. x86 instruction ENDBR64)
|
// assume fallthrough (ie. x86 instruction ENDBR64)
|
||||||
// TODO: at some point, might need to do a NOP detection
|
// TODO: at some point, might need to do a NOP detection
|
||||||
while (instr != null && instr.getPcode().length == 0) {
|
if (instr != null && instr.getPcode().length == 0) {
|
||||||
instr = listing.getInstructionAfter(instr.getAddress());
|
instr = listing.getInstructionAfter(entry);
|
||||||
}
|
}
|
||||||
if (instr == null) {
|
if (instr == null) {
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue