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 d2cc0d3 commit 04dcef5Copy full SHA for 04dcef5
cpp/ql/src/Security/CWE/CWE-190/ArithmeticUncontrolled.ql
@@ -103,8 +103,11 @@ class UncontrolledArithConfiguration extends TaintTracking::Configuration {
103
// If this expression is part of bitwise 'and' or 'or' operation it's likely that the value is
104
// only used as a bit pattern.
105
node.asExpr() =
106
- any(BinaryBitwiseOperation op | op instanceof BitwiseOrExpr or op instanceof BitwiseAndExpr)
107
- .getAnOperand*()
+ any(Operation op |
+ op instanceof BitwiseOrExpr or
108
+ op instanceof BitwiseAndExpr or
109
+ op instanceof ComplementExpr
110
+ ).getAnOperand*()
111
}
112
113
0 commit comments