File tree Expand file tree Collapse file tree 2 files changed +6
-15
lines changed
javascript/ql/test/library-tests/InterProceduralFlow Expand file tree Collapse file tree 2 files changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,7 @@ class TestDataFlowConfiguration extends DataFlow::Configuration {
22
22
f .getName ( ) .matches ( "%noReturnTracking%" ) and
23
23
node = f .getAReturnedExpr ( ) .flow ( )
24
24
)
25
- }
26
-
27
- override predicate isBarrierEdge ( DataFlow:: Node src , DataFlow:: Node snk ) {
28
- src = src and
29
- snk .asExpr ( ) .( PropAccess ) .getPropertyName ( ) = "notTracked"
25
+ or
26
+ node .asExpr ( ) .( PropAccess ) .getPropertyName ( ) = "notTracked"
30
27
}
31
28
}
Original file line number Diff line number Diff line change @@ -61,11 +61,8 @@ class TestTaintTrackingConfiguration extends TaintTracking::Configuration {
61
61
f .getName ( ) .matches ( "%noReturnTracking%" ) and
62
62
node = f .getAReturnedExpr ( ) .flow ( )
63
63
)
64
- }
65
-
66
- override predicate isSanitizerEdge ( DataFlow:: Node src , DataFlow:: Node snk ) {
67
- src = src and
68
- snk .asExpr ( ) .( PropAccess ) .getPropertyName ( ) = "notTracked"
64
+ or
65
+ node .asExpr ( ) .( PropAccess ) .getPropertyName ( ) = "notTracked"
69
66
}
70
67
}
71
68
@@ -99,11 +96,8 @@ class GermanFlowConfig extends DataFlow::Configuration {
99
96
f .getName ( ) .matches ( "%noReturnTracking%" ) and
100
97
node = f .getAReturnedExpr ( ) .flow ( )
101
98
)
102
- }
103
-
104
- override predicate isBarrierEdge ( DataFlow:: Node src , DataFlow:: Node snk ) {
105
- src = src and
106
- snk .asExpr ( ) .( PropAccess ) .getPropertyName ( ) = "notTracked"
99
+ or
100
+ node .asExpr ( ) .( PropAccess ) .getPropertyName ( ) = "notTracked"
107
101
}
108
102
}
109
103
You can’t perform that action at this time.
0 commit comments