Update DangerousUseMbtowc.ql

This commit is contained in:
ihsinme
2022-07-31 13:44:50 +03:00
committed by GitHub
parent e77a989133
commit 96e220588e

View File

@@ -117,7 +117,7 @@ predicate findUseCharacterConversion(Expr exp, string msg) {
predicate findUseMultibyteCharacter(Expr exp, string msg) {
exists(ArrayType arrayType, ArrayExpr arrayExpr |
arrayExpr = exp and
arrayExpr.getArrayBase().(VariableAccess).getTarget().getADeclarationEntry().getType() =
arrayExpr.getArrayBase().getType() =
arrayType and
(
exists(AssignExpr assZero, SizeofExprOperator sizeofArray, Expr oneValue |