[clang] [analyzer] Detect leaks of stack addresses via output params, indirect globals 3/3 (PR #105648)
Arseniy Zaostrovnykh via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 27 06:13:44 PDT 2024
================
@@ -424,6 +481,9 @@ void StackAddrEscapeChecker::checkEndFunction(const ReturnStmt *RS,
for (const auto &P : Cb.V) {
const MemRegion *Referrer = P.first->getBaseRegion();
const MemRegion *Referred = P.second;
+ if (Cb.ExcludedRegions.contains(getOriginBaseRegion(Referrer))) {
----------------
necto wrote:
Fixed in 9e048c8d43fd
https://github.com/llvm/llvm-project/pull/105648
More information about the cfe-commits
mailing list