Skip to content

Commit d1eb774

Browse files
committed
C++: Remove implied conjunction.
1 parent e0606d6 commit d1eb774

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,7 @@ predicate noThrowInTryBlock(NewOrNewArrayExpr newExpr, BadAllocCatchBlock catchB
191191
not convertedExprMayThrow(cand)
192192
) and
193193
try.getACatchClause() = catchBlock and
194-
newExpr.getEnclosingBlock().getEnclosingBlock*() = try.getStmt() and
195-
not newMayThrow(newExpr)
194+
newExpr.getEnclosingBlock().getEnclosingBlock*() = try.getStmt()
196195
)
197196
}
198197

0 commit comments

Comments
 (0)