Skip to content

Commit 85ecfe2

Browse files
geoffw0MathiasVP
andauthored
Update cpp/ql/src/experimental/Security/CWE/CWE-570/WrongInDetectingAndHandlingMemoryAllocationErrors.ql
Co-authored-by: Mathias Vorreiter Pedersen <[email protected]>
1 parent c6e7b8d commit 85ecfe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class WrongCheckErrorOperatorNew extends FunctionCall {
7272
}
7373

7474
/**
75-
* Holds if `(std::nothrow)` exists in call `operator new`.
75+
* Holds if `(std::nothrow)` or `(std::noexcept)` exists in call `operator new`.
7676
*/
7777
predicate isExistsNothrow() { getTarget().isNoExcept() or getTarget().isNoThrow() }
7878
}

0 commit comments

Comments
 (0)