diff options
author | Bryce Harrington <bryce@canonical.com> | 2011-02-16 16:55:57 -0800 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-02-17 15:38:27 +1000 |
commit | 649269d40667cfb387cb5286dd3519dd68f7dd80 (patch) | |
tree | 99318684c2484ed0f2b2d2c97b37e133e9eb55d3 /Xi/getmmap.c | |
parent | 31ddb7ef4f5bac2c13c199e74a0716e43b8dc38e (diff) |
Check for OOM condition in XISendDeviceHierarchyEvent
When system is out of memory, calloc can fail returning a NULL pointer.
Check for this before dereferencing it, and bail out if it fails.
Ref.: https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/720445
Signed-off-by: Bryce Harrington <bryce@canonical.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'Xi/getmmap.c')
0 files changed, 0 insertions, 0 deletions