mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-06-01 10:45:01 +08:00
GP-0: Null primary symbol test fix
This commit is contained in:
+2
-1
@@ -758,7 +758,8 @@ public class PseudoDisassembler {
|
|||||||
// does this reference a valid function?
|
// does this reference a valid function?
|
||||||
if (program != null) {
|
if (program != null) {
|
||||||
Symbol primary = program.getSymbolTable().getPrimarySymbol(flow);
|
Symbol primary = program.getSymbolTable().getPrimarySymbol(flow);
|
||||||
if (primary.getSymbolType() == SymbolType.FUNCTION) {
|
if (primary != null &&
|
||||||
|
primary.getSymbolType() == SymbolType.FUNCTION) {
|
||||||
didCallValidSubroutine = true;
|
didCallValidSubroutine = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user