@@ -12,26 +12,24 @@ import semmle.python.dataflow.new.DataFlow
1212import semmle.python.dataflow.new.TaintTracking
1313import experimental.meta.InlineTaintTest:: Conf
1414
15- module Conf implements DataFlow:: ConfigSig {
15+ module Config implements DataFlow:: ConfigSig {
1616 predicate isSource ( DataFlow:: Node source ) {
17- any ( TestTaintTrackingConfiguration c ) .isSource ( source )
17+ any ( TestTaintTrackingConfiguration c ) .isSource ( source )
1818 }
19- predicate isSink ( DataFlow:: Node source ) {
20- any ( TestTaintTrackingConfiguration c ) .isSink ( source )
21- }
22- }
23- int explorationLimit ( ) { result = 5 }
2419
25- module Flows = TaintTracking:: Global< Conf > ;
20+ predicate isSink ( DataFlow:: Node source ) { any ( TestTaintTrackingConfiguration c ) .isSink ( source ) }
21+ }
2622
27- module FlowsPartial = Flows :: FlowExploration < explorationLimit / 0 > ;
23+ module Flows = TaintTracking :: Global < Config > ;
2824
29- // import FlowsPartial::PartialPathGraph
3025import Flows:: PathGraph
3126
32- // from FlowsPartial::PartialPathNode source, FlowsPartial::PartialPathNode sink
33- // where FlowsPartial::partialFlow(source, sink, _)
27+ // int explorationLimit() { result = 5 }
28+ // module FlowsPartial = Flows::FlowExploration<explorationLimit/0>;
29+ // import FlowsPartial::PartialPathGraph
3430from Flows:: PathNode source , Flows:: PathNode sink
3531where Flows:: flowPath ( source , sink )
32+ // from FlowsPartial::PartialPathNode source, FlowsPartial::PartialPathNode sink
33+ // where FlowsPartial::partialFlow(source, sink, _)
3634select sink .getNode ( ) , source , sink , "This node receives taint from $@." , source .getNode ( ) ,
3735 "this source"
0 commit comments