@@ -23,7 +23,7 @@ module TaintTracking {
23
23
24
24
/* Old implementation API */
25
25
26
- predicate isSource ( Source source ) { none ( ) }
26
+ predicate isSource ( Source src ) { none ( ) }
27
27
28
28
predicate isSink ( Sink sink ) { none ( ) }
29
29
@@ -34,26 +34,26 @@ module TaintTracking {
34
34
/* New implementation API */
35
35
36
36
/**
37
- * Holds if `source ` is a source of taint of `kind` that is relevant
37
+ * Holds if `src ` is a source of taint of `kind` that is relevant
38
38
* for this configuration.
39
39
*/
40
- predicate isSource ( DataFlow:: Node node , TaintKind kind ) {
41
- exists ( TaintSource source |
42
- this .isSource ( source ) and
43
- node .asCfgNode ( ) = source and
44
- source .isSourceOf ( kind )
40
+ predicate isSource ( DataFlow:: Node src , TaintKind kind ) {
41
+ exists ( TaintSource taintSrc |
42
+ this .isSource ( taintSrc ) and
43
+ src .asCfgNode ( ) = taintSrc and
44
+ taintSrc .isSourceOf ( kind )
45
45
)
46
46
}
47
47
48
48
/**
49
49
* Holds if `sink` is a sink of taint of `kind` that is relevant
50
50
* for this configuration.
51
51
*/
52
- predicate isSink ( DataFlow:: Node node , TaintKind kind ) {
53
- exists ( TaintSink sink |
54
- this .isSink ( sink ) and
55
- node .asCfgNode ( ) = sink and
56
- sink .sinks ( kind )
52
+ predicate isSink ( DataFlow:: Node sink , TaintKind kind ) {
53
+ exists ( TaintSink taintSink |
54
+ this .isSink ( taintSink ) and
55
+ sink .asCfgNode ( ) = taintSink and
56
+ taintSink .sinks ( kind )
57
57
)
58
58
}
59
59
@@ -116,27 +116,27 @@ module TaintTracking {
116
116
117
117
/* Common query API */
118
118
119
- predicate hasFlowPath ( PathSource source , PathSink sink ) {
120
- this .( TaintTrackingImplementation ) .hasFlowPath ( source , sink )
119
+ predicate hasFlowPath ( PathSource src , PathSink sink ) {
120
+ this .( TaintTrackingImplementation ) .hasFlowPath ( src , sink )
121
121
}
122
122
123
123
/* Old query API */
124
124
125
125
/* deprecated */
126
- predicate hasFlow ( Source source , Sink sink ) {
127
- exists ( PathSource psource , PathSink psink |
128
- this .hasFlowPath ( psource , psink ) and
129
- source = psource .getNode ( ) .asCfgNode ( ) and
126
+ predicate hasFlow ( Source src , Sink sink ) {
127
+ exists ( PathSource psrc , PathSink psink |
128
+ this .hasFlowPath ( psrc , psink ) and
129
+ src = psrc .getNode ( ) .asCfgNode ( ) and
130
130
sink = psink .getNode ( ) .asCfgNode ( )
131
131
)
132
132
}
133
133
134
134
/* New query API */
135
135
136
- predicate hasSimpleFlow ( DataFlow:: Node source , DataFlow:: Node sink ) {
137
- exists ( PathSource psource , PathSink psink |
138
- this .hasFlowPath ( psource , psink ) and
139
- source = psource .getNode ( ) and
136
+ predicate hasSimpleFlow ( DataFlow:: Node src , DataFlow:: Node sink ) {
137
+ exists ( PathSource psrc , PathSink psink |
138
+ this .hasFlowPath ( psrc , psink ) and
139
+ src = psrc .getNode ( ) and
140
140
sink = psink .getNode ( )
141
141
)
142
142
}
0 commit comments