mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Update DeclarationOfVariableWithUnnecessarilyWideScope.ql
This commit is contained in:
@@ -26,7 +26,7 @@ class DangerousWhileLoop extends WhileStmt {
|
||||
exp = this.getCondition().getAChild*() and
|
||||
not exp instanceof PointerFieldAccess and
|
||||
not exp instanceof ValueFieldAccess and
|
||||
exp.toString() = dl.getName() and
|
||||
exp.(VariableAccess).getTarget().getName() = dl.getName() and
|
||||
not exp.getParent*() instanceof CrementOperation and
|
||||
not exp.getParent*() instanceof Assignment and
|
||||
not exp.getParent*() instanceof FunctionCall
|
||||
|
||||
Reference in New Issue
Block a user