mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
Ruby: local dataflow step for || and &&
This commit is contained in:
@@ -181,6 +181,12 @@ module LocalFlow {
|
||||
) and
|
||||
nodeFrom.asExpr() = for.getValue()
|
||||
)
|
||||
or
|
||||
nodeTo.asExpr() =
|
||||
any(CfgNodes::ExprNodes::BinaryOperationCfgNode op |
|
||||
op.getExpr() instanceof BinaryLogicalOperation and
|
||||
nodeFrom.asExpr() = op.getAPredecessor()
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user