@@ -15,16 +15,9 @@ import semmle.code.java.dataflow.DataFlow
15
15
import semmle.code.java.dataflow.FlowSources
16
16
import semmle.code.java.dataflow.TaintTracking
17
17
18
- class Sources extends AllSources {
19
- Sources ( ) {
20
- findByLocation ( this , "App.java" , _)
21
- }
22
-
23
- }
24
-
25
18
// Partial Graph
26
19
private module RemoteFlowsConfig implements DataFlow:: ConfigSig {
27
- predicate isSource ( DataFlow:: Node source ) { source instanceof Sources }
20
+ predicate isSource ( DataFlow:: Node source ) { source instanceof AllSources }
28
21
29
22
predicate isSink ( DataFlow:: Node sink ) { none ( ) }
30
23
}
@@ -39,10 +32,10 @@ private import RemoteFlowsPartial::PartialPathGraph
39
32
40
33
from RemoteFlowsPartial:: PartialPathNode source , RemoteFlowsPartial:: PartialPathNode sink
41
34
where
42
- // Filter by file (line number)
35
+ /// Filter by file (line number)
43
36
// findByLocation(source.getNode(), "File.java", _) and
44
- // Filter by if the sink is callable
37
+ /// Filter by if the sink is callable
45
38
// isCallable(sink.getNode()) and
46
- // Perform Partial Flow query
39
+ /// Perform Partial Flow query
47
40
RemoteFlowsPartial:: partialFlow ( source , sink , _)
48
41
select sink .getNode ( ) , source , sink , "Partial Graph $@." , source .getNode ( ) , "user-provided value"
0 commit comments