File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
java/ql/test/library-tests/frameworks/guice Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,10 @@ import java
2
2
import semmle.code.java.dataflow.FlowSources
3
3
import semmle.code.java.dataflow.TaintTracking
4
4
5
- class Conf extends TaintTracking :: Configuration {
6
- Conf ( ) { this = "conf" }
5
+ module Config implements DataFlow :: ConfigSig {
6
+ predicate isSource ( DataFlow :: Node src ) { src instanceof RemoteFlowSource }
7
7
8
- override predicate isSource ( DataFlow:: Node src ) { src instanceof RemoteFlowSource }
9
-
10
- override predicate isSink ( DataFlow:: Node sink ) {
8
+ predicate isSink ( DataFlow:: Node sink ) {
11
9
exists ( MethodAccess ma |
12
10
sink .asExpr ( ) = ma .getAnArgument ( ) and
13
11
ma .getMethod ( ) .hasName ( "sink" )
@@ -16,6 +14,8 @@ class Conf extends TaintTracking::Configuration {
16
14
}
17
15
}
18
16
19
- from Conf c , DataFlow:: Node src , DataFlow:: Node sink
20
- where c .hasFlow ( src , sink )
17
+ module Flow = TaintTracking:: Global< Config > ;
18
+
19
+ from DataFlow:: Node src , DataFlow:: Node sink
20
+ where Flow:: flow ( src , sink )
21
21
select src , sink
You can’t perform that action at this time.
0 commit comments