mirror of
https://github.com/github/codeql.git
synced 2025-12-22 03:36:30 +01:00
Update DangerousUseMbtowc.ql
This commit is contained in:
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user