From ada0008129e1cc55fdfde5dc702b12c66758cd9d Mon Sep 17 00:00:00 2001 From: Kirill Elagin Date: Tue, 4 Oct 2011 23:02:20 +0400 Subject: [PATCH] Fix server crash due to invalid images --- fb/fbpict.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/fb/fbpict.c b/fb/fbpict.c index d1fd0cb..d3b63ed 100644 --- a/fb/fbpict.c +++ b/fb/fbpict.c @@ -163,6 +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 -- 1.7.3.4