Skip to content

Commit 77a3778

Browse files
committed
CPP: Add some strlen variants to the PureStrFunction model.
1 parent 3632d51 commit 77a3778

File tree

1 file changed

+6
-1
lines changed
  • cpp/ql/src/semmle/code/cpp/models/implementations

1 file changed

+6
-1
lines changed

cpp/ql/src/semmle/code/cpp/models/implementations/Pure.qll

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@ class PureStrFunction extends AliasFunction, ArrayFunction, TaintFunction, SideE
3030
name = "strtol" or
3131
name = "strtoll" or
3232
name = "strtoq" or
33-
name = "strtoul"
33+
name = "strtoul" or
34+
name = "wcslen" or
35+
name = "_mbslen" or
36+
name = "_mbslen_l" or
37+
name = "_mbstrlen" or
38+
name = "_mbstrlen_l"
3439
)
3540
)
3641
}

0 commit comments

Comments
 (0)