summaryrefslogtreecommitdiff
path: root/fb
diff options
context:
space:
mode:
authorKirill Elagin <kirelagin@gmail.com>2011-10-04 23:02:20 +0400
committerJeremy Huddleston <jeremyhu@apple.com>2011-10-04 20:18:17 -0700
commit53611213396479abfdce0f7752681572e0d26d78 (patch)
tree6e9129a4e9ef2b083f74bf1ec682304dc25ffaa1 /fb
parent7a33c5b934382b5554f41ab1502514e91c9bc52e (diff)
Fix server crash due to invalid images
See https://bugs.freedesktop.org/show_bug.cgi?id=39383 Signed-off-by: Kirill Elagin <kirelagin@gmail.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'fb')
-rw-r--r--fb/fbpict.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fb/fbpict.c b/fb/fbpict.c
index d1fd0cbbd..57c93fd06 100644
--- a/fb/fbpict.c
+++ b/fb/fbpict.c
@@ -163,7 +163,9 @@ create_bits_picture (PicturePtr pict,
(pixman_format_code_t)pict->format,
pixmap->drawable.width, pixmap->drawable.height,
(uint32_t *)bits, stride * sizeof (FbStride));
-
+
+ if (!image)
+ return NULL;
#ifdef FB_ACCESS_WRAPPER
#if FB_SHIFT==5