Re: [PATCH weston 3/3] compositor-wayland: avoid possible NULL deref in handle_keymap

2014-05-06 Thread Kristian Høgsberg
On Tue, May 06, 2014 at 02:50:03PM -0700, U. Artie Eoff wrote: > If data is NULL, then we jumped to error which attempts to > dereference data. Instead, just close(fd) and return when > data is NULL. > > Signed-off-by: U. Artie Eoff All three look good, applied. Kristian > --- > src/composit

[PATCH weston 3/3] compositor-wayland: avoid possible NULL deref in handle_keymap

2014-05-06 Thread U. Artie Eoff
If data is NULL, then we jumped to error which attempts to dereference data. Instead, just close(fd) and return when data is NULL. Signed-off-by: U. Artie Eoff --- src/compositor-wayland.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/compositor-wayland.c b/src/c