mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
23 lines
537 B
Plaintext
23 lines
537 B
Plaintext
/**
|
|
* @kind path-problem
|
|
*/
|
|
|
|
import ruby
|
|
import utils.test.InlineFlowTest
|
|
import codeql.ruby.dataflow.BarrierGuards
|
|
import PathGraph
|
|
|
|
module FlowConfig implements DataFlow::ConfigSig {
|
|
predicate isSource = DefaultFlowConfig::isSource/1;
|
|
|
|
predicate isSink = DefaultFlowConfig::isSink/1;
|
|
|
|
predicate isBarrier(DataFlow::Node n) { n instanceof StringConstCompareBarrier }
|
|
}
|
|
|
|
import ValueFlowTest<FlowConfig>
|
|
|
|
from PathNode source, PathNode sink
|
|
where flowPath(source, sink)
|
|
select sink, source, sink, "$@", source, source.toString()
|