Update ql/src/codeql_ruby/dataflow/BarrierGuards.qll

Co-authored-by: Tom Hvitved <hvitved@github.com>
This commit is contained in:
Alex Ford
2021-06-24 14:56:08 +01:00
committed by Alex Ford
parent 9883a9b606
commit a4a8f17a54

View File

@@ -60,7 +60,7 @@ class StringConstArrayInclusionCall extends DataFlow::BarrierGuard,
this.getExpr().getReceiver() = aLit
|
forall(Expr elem | elem = aLit.getAnElement() | elem instanceof StringLiteral) and
this.getExpr().getArgument(0) = checkedNode.getNode()
this.getArgument(0) = checkedNode
)
}