From 53611213396479abfdce0f7752681572e0d26d78 Mon Sep 17 00:00:00 2001 From: Kirill Elagin Date: Tue, 4 Oct 2011 23:02:20 +0400 Subject: Fix server crash due to invalid images See https://bugs.freedesktop.org/show_bug.cgi?id=39383 Signed-off-by: Kirill Elagin Reviewed-by: Jeremy Huddleston --- fb/fbpict.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'fb') 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 -- cgit v1.2.3