Skip to content

Commit 9f7413e

Browse files
committed
C++: Omit assign case from cpp/non-constant-format
1 parent 2b540e2 commit 9f7413e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

cpp/ql/src/Likely Bugs/Format/NonConstantFormat.ql

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@ predicate isNonConst(DataFlow::Node node, boolean isIndirect) {
105105
or
106106
e instanceof NewArrayExpr
107107
or
108-
e instanceof AssignExpr
109-
or
110108
exists(Variable v | v = e.(VariableAccess).getTarget() |
111109
v.getType().(ArrayType).getBaseType() instanceof CharType and
112110
exists(AssignExpr ae |

0 commit comments

Comments
 (0)