mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Update cpp/ql/test/query-tests/Security/CWE/CWE-570/test.cpp
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
0d1884d7a6
commit
8d594dbf08
@@ -230,6 +230,6 @@ void good_new_catch_exception_in_conversion() {
|
||||
void *operator new(std::size_t, int n, const std::nothrow_t &);
|
||||
|
||||
void test_operator_new_without_exception_spec() {
|
||||
int* p = new(42, std::nothrow) int; // GOOD [FALSE POSITIVE]
|
||||
int* p = new(42, std::nothrow) int; // GOOD
|
||||
if(p == nullptr) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user