Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1072d6a

Browse files
bdrodesgeoffw0
andauthored
Apply suggestion from @geoffw0
Co-authored-by: Geoffrey White <[email protected]>
1 parent c811fae commit 1072d6a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)