Skip to content

Commit e0606d6

Browse files
committed
C++: Fix qldoc.
1 parent c12837c commit e0606d6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,9 @@ class BadAllocCatchBlock extends CatchBlock {
181181
}
182182

183183
/**
184-
* Holds if `newExpr` will not throw an exception, but is embedded in a `try` statement
185-
* with a catch block `catchBlock` that catches an `std::bad_alloc` exception.
184+
* Holds if `newExpr` is embedded in a `try` statement with a catch block `catchBlock` that
185+
* catches a `std::bad_alloc` exception, but nothing in the `try` block (including the `newExpr`)
186+
* will throw that exception.
186187
*/
187188
predicate noThrowInTryBlock(NewOrNewArrayExpr newExpr, BadAllocCatchBlock catchBlock) {
188189
exists(TryStmt try |

0 commit comments

Comments
 (0)