fix potential buffer overrun in unit test

This commit is contained in:
Arvid Norberg 2014-01-18 06:54:13 +00:00
parent b283d58899
commit f28e6c8c81
1 changed files with 2 additions and 1 deletions

View File

@ -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);