GP-4283 Added missing check for destination function existence when creating an implied match.

This commit is contained in:
ghidra007 2024-03-01 22:04:20 +00:00
parent c8790828f4
commit 653e3d8f80

View file

@ -241,7 +241,13 @@ public class ImpliedMatchUtils {
if (sourceFunction.getProgram() if (sourceFunction.getProgram()
.getFunctionManager() .getFunctionManager()
.getFunctionAt(srcRefToAddress) == null) { .getFunctionAt(srcRefToAddress) == null) {
return null; // function may not have been created here. return null; // source function may not have been created here.
}
if (destinationFunction.getProgram()
.getFunctionManager()
.getFunctionAt(destRefToAddress) == null) {
return null; // destination function may not have been created here.
} }
} }