diff options
author | U. Artie Eoff <ullysses.a.eoff@intel.com> | 2014-01-10 14:43:48 -0800 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2014-01-15 10:46:09 -0800 |
commit | 02952d040cce73c167eaaafe94748a253cd74f02 (patch) | |
tree | c20563f6d4c9c95c20629277de45333815cd67a8 | |
parent | d6c6f2977de84d54395def96e18a448ae68bf711 (diff) |
xcursor: don't proceed if XcursorImageCreate failed
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
-rw-r--r-- | cursor/xcursor.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cursor/xcursor.c b/cursor/xcursor.c index 7a9662a..f9d9669 100644 --- 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; |