projects
/
platform
/
upstream
/
wayland.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6c6f29
)
xcursor: don't proceed if XcursorImageCreate failed
author
U. Artie Eoff
<ullysses.a.eoff@intel.com>
Fri, 10 Jan 2014 22:43:48 +0000
(14:43 -0800)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Wed, 15 Jan 2014 18:46:09 +0000
(10:46 -0800)
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
cursor/xcursor.c
patch
|
blob
|
history
diff --git
a/cursor/xcursor.c
b/cursor/xcursor.c
index
7a9662a
..
f9d9669
100644
(file)
--- a/
cursor/xcursor.c
+++ b/
cursor/xcursor.c
@@
-488,6
+488,8
@@
_XcursorReadImage (XcursorFile *file,
/* Create the image and initialize it */
image = XcursorImageCreate (head.width, head.height);
+ if (image == NULL)
+ return NULL;
if (chunkHeader.version < image->version)
image->version = chunkHeader.version;
image->size = chunkHeader.subtype;