Files
codeql/ruby/ql/test/library-tests/dataflow/barrier-guards/barrier-flow.ql
Anders Schack-Mulligen e2eb6dbbf2 Ruby: Fix query compilation.
2025-09-01 11:26:37 +02:00

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