mirror of
https://github.com/github/codeql.git
synced 2026-04-22 15:25:18 +02:00
Update DangerousUseMbtowc.ql
This commit is contained in:
@@ -68,7 +68,7 @@ predicate findUseCharacterConversion(Expr exp, string msg) {
|
||||
fc = exp and
|
||||
(
|
||||
exists(Loop lptmp | lptmp = fc.getEnclosingStmt().getParentStmt*()) and
|
||||
fc.getTarget().hasName(["mbtowc", "mbrtowc"]) and
|
||||
fc.getTarget().hasName(["mbtowc", "mbrtowc", "_mbtowc_l"]) and
|
||||
not fc.getArgument(0).isConstant() and
|
||||
not fc.getArgument(1).isConstant() and
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user