Skip to content

Commit 1072d6a

Browse files
bdrodesgeoffw0
andauthored
Apply suggestion from @geoffw0
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com>
1 parent c811fae commit 1072d6a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cpp/ql/src/Likely Bugs/Leap Year/UncheckedLeapYearAfterYearModification.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ class IgnorablePointerOrCharArithmetic extends IgnorableOperation {
257257
)
258258
or
259259
// Operations on calls to functions named like "strlen", "wcslen", etc
260+
// for example `strlen(foo) + bar`
260261
this.(BinaryArithmeticOperation).getAnOperand().(Call).getTarget().getName().matches("%len%")
261262
)
262263
}

0 commit comments

Comments
 (0)