Skip to content

Commit c6e7b8d

Browse files
committed
C++: Repair test.
1 parent 4100d68 commit c6e7b8d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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 |

cpp/ql/test/experimental/query-tests/Security/CWE/CWE-570/semmle/tests/test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ using namespace std;
1414

1515
void* operator new(std::size_t _Size);
1616
void* 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

2020
void badNew_0_0()
2121
{

0 commit comments

Comments
 (0)