File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
rust/ql/src/queries/security/CWE-825 Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,15 @@ module AccessAfterLifetimeConfig implements DataFlow::ConfigSig {
28
28
predicate isSink ( DataFlow:: Node node ) { node instanceof AccessAfterLifetime:: Sink }
29
29
30
30
predicate isBarrier ( DataFlow:: Node barrier ) { barrier instanceof AccessAfterLifetime:: Barrier }
31
+
32
+ predicate observeDiffInformedIncrementalMode ( ) { any ( ) }
33
+
34
+ Location getASelectedSourceLocation ( DataFlow:: Node source ) {
35
+ exists ( Variable target , DataFlow:: Node sink | result = target .getLocation ( ) |
36
+ isSink ( sink ) and
37
+ AccessAfterLifetime:: dereferenceAfterLifetime ( source , sink , target )
38
+ )
39
+ }
31
40
}
32
41
33
42
module AccessAfterLifetimeFlow = TaintTracking:: Global< AccessAfterLifetimeConfig > ;
You can’t perform that action at this time.
0 commit comments