Update DeclarationOfVariableWithUnnecessarilyWideScope.ql

This commit is contained in:
ihsinme
2021-05-02 22:58:30 +03:00
committed by GitHub
parent 8c3980d80b
commit 0935c5a0f2

View File

@@ -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