connection-test: check malloc result
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
This commit is contained in:
parent
7a17b05187
commit
b41ded812d
|
@ -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';
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user