fix potential buffer overrun in unit test
This commit is contained in:
parent
b283d58899
commit
f28e6c8c81
|
@ -245,7 +245,8 @@ void test_chained_buffer()
|
|||
TEST_CHECK(!b.empty());
|
||||
TEST_CHECK(b.space_in_last_buffer() == 512 - 12);
|
||||
|
||||
ret = b.append(data, 1024);
|
||||
char data2[1024];
|
||||
ret = b.append(data2, 1024);
|
||||
|
||||
TEST_CHECK(ret == false);
|
||||
|
||||
|
|
Loading…
Reference in New Issue