mirror of
https://github.com/github/codeql.git
synced 2026-03-06 15:49:08 +01:00
Gets rid of ``` PathNode is incompatible with PathNode (the type of the edge relation). ``` warnings.
19 lines
581 B
Plaintext
19 lines
581 B
Plaintext
/**
|
|
* @kind path-problem
|
|
*/
|
|
|
|
import codeql.ruby.AST
|
|
import codeql.ruby.DataFlow
|
|
import TestUtilities.InlineFlowTest
|
|
import DefaultFlowTest
|
|
import TaintFlow::PathGraph
|
|
import codeql.ruby.dataflow.internal.DataFlowDispatch as DataFlowDispatch
|
|
|
|
query predicate mayBenefitFromCallContext = DataFlowDispatch::mayBenefitFromCallContext/2;
|
|
|
|
query predicate viableImplInCallContext = DataFlowDispatch::viableImplInCallContext/2;
|
|
|
|
from TaintFlow::PathNode source, TaintFlow::PathNode sink
|
|
where TaintFlow::flowPath(source, sink)
|
|
select sink, source, sink, "$@", source, source.toString()
|