Skip to content

Commit dcc1429

Browse files
committed
C++: Get rid of '+ 1' in comments.
1 parent b750016 commit dcc1429

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/ql/lib/semmle/code/cpp/security/InvalidPointerDereference/AllocationToInvalidPointer.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ private module SizeBarrier {
147147
left = value.getAUse() and
148148
// We know:
149149
// 1. result <= value + delta (by `bounded`)
150-
// 2. value < right + k + 1 (by `operandGuardChecks`).
151-
// Note that condition 2 implies: value <= right + k. So we have:
150+
// 2. value <= right + k (by `operandGuardChecks`).
151+
// So:
152152
// result <= value + delta (by 1.)
153153
// <= right + k + delta (by 2.)
154154
operandGuardChecks(pragma[only_bind_into](g), pragma[only_bind_into](left), right,

0 commit comments

Comments
 (0)