diff --git a/ruby/ql/lib/codeql/ruby/dataflow/BarrierGuards.qll b/ruby/ql/lib/codeql/ruby/dataflow/BarrierGuards.qll index 92fb759c468..f1f8d2c5b46 100644 --- a/ruby/ql/lib/codeql/ruby/dataflow/BarrierGuards.qll +++ b/ruby/ql/lib/codeql/ruby/dataflow/BarrierGuards.qll @@ -9,6 +9,7 @@ private import codeql.ruby.ast.internal.Constant private import codeql.ruby.InclusionTests private import codeql.ruby.ast.internal.Literal +cached private predicate stringConstCompare(CfgNodes::AstCfgNode guard, CfgNode testedNode, boolean branch) { exists(CfgNodes::ExprNodes::ComparisonOperationCfgNode c | c = guard and @@ -102,6 +103,7 @@ deprecated class StringConstCompare extends DataFlow::BarrierGuard, } } +cached private predicate stringConstArrayInclusionCall( CfgNodes::AstCfgNode guard, CfgNode testedNode, boolean branch ) {