Commit b41ded81 authored by U. Artie Eoff's avatar U. Artie Eoff Committed by Kristian Høgsberg
Browse files

connection-test: check malloc result


Signed-off-by: U. Artie Eoff's avatarU. Artie Eoff <ullysses.a.eoff@intel.com>
parent 7a17b051
......@@ -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';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment