Skip to content

Commit e948e39

Browse files
committed
CTR55-CPP: remove unnecessary predicate
1 parent 4f7523c commit e948e39

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

cpp/cert/src/rules/CTR55-CPP/DoNotUseAnAdditiveOperatorOnAnIterator.ql

-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ where
5757
it.isAdditiveOperation() and
5858
not exists(RangeBasedForStmt fs | fs.getUpdate().getAChild*() = it) and
5959
source = it.getANearbyAssigningIteratorCall() and
60-
not sizeCompareBoundsChecked(source, it) and
6160
not validEndBoundCheck(it, source) and
6261
not sizeCheckedAbove(it, source)
6362
select it, "Increment of iterator may overflow since its bounds are not checked."

0 commit comments

Comments
 (0)