mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Update WrongInDetectingAndHandlingMemoryAllocationErrors.ql
This commit is contained in:
@@ -22,6 +22,9 @@ class IfCompareWithZero extends IfStmt {
|
||||
or
|
||||
this.getCondition().(NEExpr).getAChild().getValue() = "0" and
|
||||
this.hasElse()
|
||||
or
|
||||
this.getCondition().(NEExpr).getAChild().getValue() = "0" and
|
||||
this.getThen().getAChild*() instanceof ReturnStmt
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user