Skip to content

Commit 96e2205

Browse files
authored
Update DangerousUseMbtowc.ql
1 parent e77a989 commit 96e2205

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
@@ -117,7 +117,7 @@ predicate findUseCharacterConversion(Expr exp, string msg) {
117117
predicate findUseMultibyteCharacter(Expr exp, string msg) {
118118
exists(ArrayType arrayType, ArrayExpr arrayExpr |
119119
arrayExpr = exp and
120-
arrayExpr.getArrayBase().(VariableAccess).getTarget().getADeclarationEntry().getType() =
120+
arrayExpr.getArrayBase().getType() =
121121
arrayType and
122122
(
123123
exists(AssignExpr assZero, SizeofExprOperator sizeofArray, Expr oneValue |

0 commit comments

Comments
 (0)