We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f241498 commit 93dd9d0Copy full SHA for 93dd9d0
ruby/ql/src/experimental/cwe-208/UnsafeHmacComparison.ql
@@ -54,11 +54,7 @@ class Configuration extends DataFlow::Configuration {
54
55
// Holds if a given sink is an Equality Operation (== or !=)
56
override predicate isSink(DataFlow::Node sink) {
57
- exists(EqualityOperation eqOp |
58
- eqOp.getLeftOperand() = sink.asExpr().getExpr()
59
- or
60
- eqOp.getRightOperand() = sink.asExpr().getExpr()
61
- )
+ any(EqualityOperation eqOp).getAnOperand() = sink.asExpr().getExpr()
62
}
63
64
0 commit comments