patch, and it should catch the problem you're
trying to handle here.
Kristian
>> -Original Message-
>> From: Daniel Stone [mailto:dan...@fooishbar.org]
>> Sent: Monday, October 31, 2011 7:14 PM
>> To: Zhao, Juan J
>> Cc: wayland-devel@lists.freedesktop.or
; Sent: Monday, October 31, 2011 7:14 PM
> To: Zhao, Juan J
> Cc: wayland-devel@lists.freedesktop.org
> Subject: Re: [PATCH 1/2] wl_shell: check the parameter sent by the clients
>
> Hi,
>
> On 31 October 2011 07:17, wrote:
> > + if((struct wl_interfac
Hi,
On 31 October 2011 07:17, wrote:
> + if((struct wl_interface *)
> + (((struct wl_object *)surface_resource)->interface)->name
> + !="wl_surface")
This is, er, not how you perform string comparison in C.
Cheers,
Daniel
_
From: Juan Zhao
sometimes the unhealthy clients may send wrong parameter,
the server should not be crashed by these wrong parameters.
---
compositor/shell.c | 10 ++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/compositor/shell.c b/compositor/shell.c
index 50c80e9..8