File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
cpp/ql/test/experimental/query-tests/Security/CWE/CWE-570/semmle/tests Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11| test.cpp:30:15:30:26 | call to operator new[] | memory allocation error check is incorrect or missing |
22| test.cpp:38:9:38:20 | call to operator new[] | memory allocation error check is incorrect or missing |
3- | test.cpp:81:18:81:43 | call to operator new[] | memory allocation error check is incorrect or missing |
4- | test.cpp:87:14:87:39 | call to operator new[] | memory allocation error check is incorrect or missing |
5- | test.cpp:92:13:92:38 | call to operator new[] | memory allocation error check is incorrect or missing |
3+ | test.cpp:50:13:50:38 | call to operator new[] | memory allocation error check is incorrect or missing |
4+ | test.cpp:51:22:51:47 | call to operator new[] | memory allocation error check is incorrect or missing |
5+ | test.cpp:53:18:53:43 | call to operator new[] | memory allocation error check is incorrect or missing |
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ using namespace std;
1414
1515void * operator new (std::size_t _Size);
1616void * operator new [](std::size_t _Size);
17- void * operator new ( std::size_t count, const std::nothrow_t & tag );
18- void * operator new []( std::size_t count, const std::nothrow_t & tag );
17+ void * operator new ( std::size_t count, const std::nothrow_t & tag ) noexcept ;
18+ void * operator new []( std::size_t count, const std::nothrow_t & tag ) noexcept ;
1919
2020void badNew_0_0 ()
2121{
You can’t perform that action at this time.
0 commit comments