mirror of
https://github.com/github/codeql.git
synced 2025-12-22 11:46:32 +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) {
|
predicate findUseMultibyteCharacter(Expr exp, string msg) {
|
||||||
exists(ArrayType arrayType, ArrayExpr arrayExpr |
|
exists(ArrayType arrayType, ArrayExpr arrayExpr |
|
||||||
arrayExpr = exp and
|
arrayExpr = exp and
|
||||||
arrayExpr.getArrayBase().(VariableAccess).getTarget().getADeclarationEntry().getType() =
|
arrayExpr.getArrayBase().getType() =
|
||||||
arrayType and
|
arrayType and
|
||||||
(
|
(
|
||||||
exists(AssignExpr assZero, SizeofExprOperator sizeofArray, Expr oneValue |
|
exists(AssignExpr assZero, SizeofExprOperator sizeofArray, Expr oneValue |
|
||||||
|
|||||||
Reference in New Issue
Block a user