Skip to content

Ghidra is a software reverse engineering (SRE) framework

GT-3626_emteere_noreturnbug fixed check for functions that only call non-returning functions without returning

emteere268ef8acc784
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/analysis/FindNoReturnFunctionsAnalyzer.java b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/analysis/FindNoReturnFunctionsAnalyzer.java
index d836946e4d..9560e34d34 100644
--- a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/analysis/FindNoReturnFunctionsAnalyzer.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/analysis/FindNoReturnFunctionsAnalyzer.java
@@ -423,7 +423,7 @@ public class FindNoReturnFunctionsAnalyzer extends AbstractAnalyzer {
visited.add(blockAddr);
FlowType flowType = block.getFlowType();
- if (flowType.isTerminal()) {
+ if (flowType.isTerminal() && !flowType.isCall()) {
return false;
}