Merge pull request #20966 from geoffw0/lifetimetest

Rust: Fix FPs from rust/access-after-lifetime-ended
This commit is contained in:
Geoffrey White
2025-12-08 09:03:51 +00:00
committed by GitHub
5 changed files with 47 additions and 1 deletions

View File

@@ -102,7 +102,7 @@ module AccessAfterLifetime {
// propagate through function calls
exists(Call call |
mayEncloseOnStack(a, call.getEnclosingBlock()) and
call.getStaticTarget() = b.getEnclosingCallable()
call.getARuntimeTarget() = b.getEnclosingCallable()
)
}