Files
codeql/java/ql/test/library-tests/frameworks/spring/controller/test.ql
2022-04-07 18:17:50 +02:00

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) }
}