mirror of
https://github.com/github/codeql.git
synced 2025-12-24 12:46:34 +01:00
17 lines
432 B
Plaintext
17 lines
432 B
Plaintext
import java
|
|
import semmle.code.java.dataflow.TaintTracking
|
|
|
|
class Conf extends TaintTracking::Configuration {
|
|
Conf() { this = "qltest:dataflow:format" }
|
|
|
|
override predicate isSource(DataFlow::Node n) {
|
|
n.asExpr().(MethodAccess).getMethod().hasName("taint")
|
|
}
|
|
|
|
override predicate isSink(DataFlow::Node n) { any() }
|
|
}
|
|
|
|
from DataFlow::Node src, DataFlow::Node sink, Conf conf
|
|
where conf.hasFlow(src, sink)
|
|
select src, sink
|