We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60930f4 commit 0421dabCopy full SHA for 0421dab
test/msgpack_c.cpp
@@ -1359,9 +1359,7 @@ TEST(MSGPACKC, vreff_buffer_overflow)
1359
msgpack_vrefbuffer vbuf;
1360
msgpack_vrefbuffer to;
1361
size_t ref_size = 0;
1362
- size_t len = 0x1000;
1363
size_t chunk_size = std::numeric_limits<size_t>::max();
1364
- char *buf = (char *)malloc(len);
1365
EXPECT_FALSE(msgpack_vrefbuffer_init(&vbuf, ref_size, chunk_size));
1366
EXPECT_EQ(-1, msgpack_vrefbuffer_migrate(&vbuf, &to));
1367
}
0 commit comments