CheckPassiveGrabsOnWindow() needs to handle NULL return value from AllocGrab()
authorAlan Coopersmith <alan.coopersmith@oracle.com>
Tue, 7 Jan 2014 01:10:40 +0000 (17:10 -0800)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 9 Jan 2014 03:36:29 +0000 (13:36 +1000)
commit863d2ad5c02cccde9a4d1a392a7cae78d001c8a9
tree48faca6bcc043a1757b3ab3802e691d76cab9c96
parent5493a67ec256d22a8a41597a345d8e1c54d6e335
CheckPassiveGrabsOnWindow() needs to handle NULL return value from AllocGrab()

CheckPassiveGrabsOnWindow() calls AllocGrab() which can fail and return NULL.
This return value is not checked, and can cause NULL pointer dereferences.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
dix/events.c