connection-test: check malloc result

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
This commit is contained in:
U. Artie Eoff 2014-05-05 14:45:20 -07:00 committed by Kristian Høgsberg
parent 7a17b05187
commit b41ded812d

View File

@ -516,6 +516,8 @@ TEST(connection_marshal_too_big)
struct marshal_data data;
char *big_string = malloc(5000);
assert(big_string);
memset(big_string, ' ', 4999);
big_string[4999] = '\0';