Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-4301 fixed prototype override context check for UndefinedFunction case.

ghidra1ba6e66dcd1bf
diff --git a/Ghidra/Features/Decompiler/src/main/java/ghidra/app/plugin/core/decompile/actions/OverridePrototypeAction.java b/Ghidra/Features/Decompiler/src/main/java/ghidra/app/plugin/core/decompile/actions/OverridePrototypeAction.java
index 3902781d6d..fe34b63838 100644
--- a/Ghidra/Features/Decompiler/src/main/java/ghidra/app/plugin/core/decompile/actions/OverridePrototypeAction.java
+++ b/Ghidra/Features/Decompiler/src/main/java/ghidra/app/plugin/core/decompile/actions/OverridePrototypeAction.java
@@ -76,7 +76,7 @@ public class OverridePrototypeAction extends AbstractDecompilerAction {
}
static Symbol getSymbol(Function func, ClangToken tokenAtCursor) {
- if (tokenAtCursor == null) {
+ if (tokenAtCursor == null || (func instanceof UndefinedFunction)) {
return null;
}