We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9ece38 commit cc571b3Copy full SHA for cc571b3
rust/ql/src/queries/security/CWE-825/AccessAfterLifetime.ql
@@ -32,7 +32,9 @@ module AccessAfterLifetimeConfig implements DataFlow::ConfigSig {
32
predicate observeDiffInformedIncrementalMode() { any() }
33
34
Location getASelectedSourceLocation(DataFlow::Node source) {
35
- exists(Variable target, DataFlow::Node sink | result = target.getLocation() |
+ exists(Variable target, DataFlow::Node sink |
36
+ result = [target.getLocation(), source.getLocation()]
37
+ |
38
isSink(sink) and
39
narrowDereferenceAfterLifetime(source, sink, target)
40
)
0 commit comments