Files
codeql/java/ql/test/library-tests/dataflow/partial/test.ql
Anders Schack-Mulligen 8a318ce4e7 Java: Extend test with graph.
2019-08-30 14:35:21 +02:00

19 lines
509 B
Plaintext

import java
import semmle.code.java.dataflow.DataFlow
import DataFlow
import PartialPathGraph
class Conf extends Configuration {
Conf() { this = "partial flow" }
override predicate isSource(Node n) { n.asExpr().(MethodAccess).getMethod().hasName("src") }
override predicate isSink(Node n) { n.asExpr().(Argument).getCall().getCallee().hasName("sink") }
override int explorationLimit() { result = 10 }
}
from PartialPathNode n, int dist
where any(Conf c).hasPartialFlow(_, n, dist)
select dist, n