mirror of
https://github.com/github/codeql.git
synced 2025-12-16 08:43:11 +01:00
Update rust/ql/lib/codeql/rust/security/AccessAfterLifetimeExtensions.qll
Co-authored-by: Simon Friis Vindum <paldepind@github.com>
This commit is contained in:
@@ -102,7 +102,7 @@ module AccessAfterLifetime {
|
||||
// propagate through function calls
|
||||
exists(Call call |
|
||||
mayEncloseOnStack(a, call.getEnclosingBlock()) and
|
||||
[call.getStaticTarget(), call.getARuntimeTarget()] = b.getEnclosingCallable()
|
||||
call.getARuntimeTarget() = b.getEnclosingCallable()
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user