Update DangerousUseMbtowc.ql

This commit is contained in:
ihsinme
2022-07-04 11:17:12 +03:00
committed by GitHub
parent 4e28887689
commit 8967f57bbc

View File

@@ -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
(