Skip to content

Commit e7842b9

Browse files
committed
C++: Autoformat.
1 parent 00f6f66 commit e7842b9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

cpp/ql/src/Security/CWE/CWE-190/ArithmeticUncontrolled.ql

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,9 @@ private class RandS extends RandomFunction {
7474

7575
predicate missingGuard(VariableAccess va, string effect) {
7676
exists(Operation op | op.getAnOperand() = va |
77-
(
78-
missingGuardAgainstUnderflow(op, va) and effect = "underflow" and
79-
not op instanceof MulExpr // random numbers are usually non-negative, so multiplication doesn't underflow.
80-
)
77+
missingGuardAgainstUnderflow(op, va) and
78+
effect = "underflow" and
79+
not op instanceof MulExpr // random numbers are usually non-negative, so multiplication doesn't underflow.
8180
or
8281
missingGuardAgainstOverflow(op, va) and effect = "overflow"
8382
)

0 commit comments

Comments
 (0)