mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
emteere_ThunkIssuePartialVnode fix for exception in thunk check
involving instructions accessing a register where no full defined register exists
This commit is contained in:
parent
81db4a3e8e
commit
fc068f1431
1 changed files with 3 additions and 1 deletions
|
@ -685,7 +685,9 @@ public class CreateThunkFunctionCmd extends BackgroundCommand {
|
|||
for (Iterator<Varnode> iterator = setRegisters.iterator(); iterator.hasNext();) {
|
||||
Varnode rvnode = iterator.next();
|
||||
Register reg = program.getRegister(rvnode);
|
||||
if (reg.isHidden()) {
|
||||
// the register pcode access could have fallen in the middle of a valid register
|
||||
// thus no register will exist at the varnode
|
||||
if (reg != null && reg.isHidden()) {
|
||||
iterator.remove();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue