Skip to content

Commit

Permalink
C++: Omit assign case from cpp/non-constant-format which does not d…
Browse files Browse the repository at this point in the history
…o anything
  • Loading branch information
jketema committed Aug 23, 2023
1 parent 2b540e2 commit b68cfa0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cpp/ql/src/Likely Bugs/Format/NonConstantFormat.ql
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ predicate isNonConst(DataFlow::Node node, boolean isIndirect) {
or
e instanceof NewArrayExpr
or
e instanceof AssignExpr
or
exists(Variable v | v = e.(VariableAccess).getTarget() |
v.getType().(ArrayType).getBaseType() instanceof CharType and
exists(AssignExpr ae |
Expand Down

0 comments on commit b68cfa0

Please sign in to comment.