Files
codeql/csharp/ql/test/library-tests/dataflow/global/TaintTrackingPath.ql
2018-08-02 17:53:23 +01:00

28 lines
527 B
Plaintext

/**
* @kind path-problem
*/
import csharp
import Common
import DataFlow::PathGraph
class TTConfig extends TaintTracking::Configuration {
Config c;
TTConfig() {
this = c
}
override predicate isSource(DataFlow::Node source) {
c.isSource(source)
}
override predicate isSink(DataFlow::Node sink) {
c.isSink(sink)
}
}
from TTConfig c, DataFlow::PathNode source, DataFlow::PathNode sink, string s
where c.hasFlowPath(source, sink)
and s = sink.toString()
select sink, s, source, sink
order by s asc