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:
Mathias Vorreiter Pedersen
2021-08-11 16:18:18 +02:00
committed by GitHub
parent 0d1884d7a6
commit 8d594dbf08

View File

@@ -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) {}
}