Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2b946ae

Browse files
authored
Update WrongInDetectingAndHandlingMemoryAllocationErrors.ql
1 parent bdbf5a4 commit 2b946ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp/ql/src/experimental/Security/CWE/CWE-570/WrongInDetectingAndHandlingMemoryAllocationErrors.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class WrongCheckErrorOperatorNew extends FunctionCall {
5858
predicate isExistsIfCondition() {
5959
exists(IfCompareWithZero ifc, AssignExpr aex, Initializer it |
6060
// call `operator new` directly from the condition of `operator if`.
61-
this = ifc.getCondition().getAChild()
61+
this = ifc.getCondition().getAChild*()
6262
or
6363
// check results call `operator new` with variable appropriation
6464
postDominates(ifc, this) and

0 commit comments

Comments
 (0)