Skip to content

Commit 8967f57

Browse files
authored
Update DangerousUseMbtowc.ql
1 parent 4e28887 commit 8967f57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/experimental/Security/CWE/CWE-125/DangerousUseMbtowc.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ predicate findUseCharacterConversion(Expr exp, string msg) {
6868
fc = exp and
6969
(
7070
exists(Loop lptmp | lptmp = fc.getEnclosingStmt().getParentStmt*()) and
71-
fc.getTarget().hasName(["mbtowc", "mbrtowc"]) and
71+
fc.getTarget().hasName(["mbtowc", "mbrtowc", "_mbtowc_l"]) and
7272
not fc.getArgument(0).isConstant() and
7373
not fc.getArgument(1).isConstant() and
7474
(

0 commit comments

Comments
 (0)