[clang] [analyzer] Detect leaks of stack addresses via output params, indirect globals 3/3 (PR #105648)
Gábor Horváth via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 27 08:28:49 PDT 2024
================
@@ -348,12 +357,27 @@ void StackAddrEscapeChecker::checkEndFunction(const ReturnStmt *RS,
ExplodedNode *Node = Ctx.getPredecessor();
+ bool ExitingTopFrame =
+ Ctx.getPredecessor()->getLocationContext()->inTopFrame();
+
+ if (ExitingTopFrame && Node->getLocation().getTag() &&
+ Node->getLocation().getTag()->getTagDescription() ==
----------------
Xazax-hun wrote:
I am happy with the new version.
https://github.com/llvm/llvm-project/pull/105648
More information about the cfe-commits
mailing list