[PATCH wayland 2/2] connection-test: check malloc result
Kristian Høgsberg
hoegsberg at gmail.com
Tue May 6 14:59:49 PDT 2014
On Mon, May 05, 2014 at 02:45:20PM -0700, U. Artie Eoff wrote:
> Signed-off-by: U. Artie Eoff <ullysses.a.eoff at intel.com>
Applied, thanks.
> ---
> tests/connection-test.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/tests/connection-test.c b/tests/connection-test.c
> index 1213875..659bf68 100644
> --- a/tests/connection-test.c
> +++ b/tests/connection-test.c
> @@ -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';
>
> --
> 1.9.0
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
More information about the wayland-devel
mailing list