mirror of
https://github.com/github/codeql.git
synced 2025-12-19 18:33:16 +01:00
18 lines
545 B
Plaintext
18 lines
545 B
Plaintext
import java
|
|
import semmle.code.java.dataflow.FlowSources
|
|
import TestUtilities.InlineFlowTest
|
|
|
|
class ValueFlowConf extends DataFlow::Configuration {
|
|
ValueFlowConf() { this = "ValueFlowConf" }
|
|
|
|
override predicate isSource(DataFlow::Node source) { source instanceof RemoteFlowSource }
|
|
|
|
override predicate isSink(DataFlow::Node sink) {
|
|
sink.asExpr().(Argument).getCall().getCallee().hasName("sink")
|
|
}
|
|
}
|
|
|
|
class Test extends InlineFlowTest {
|
|
override DataFlow::Configuration getValueFlowConfig() { result = any(ValueFlowConf config) }
|
|
}
|