mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
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
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue