Skip to content

Commit bec15eb

Browse files
kirelaginjeremyhu
authored andcommitted
Fix server crash due to invalid images
See https://bugs.freedesktop.org/show_bug.cgi?id=39383 Signed-off-by: Kirill Elagin <[email protected]> Reviewed-by: Jeremy Huddleston <[email protected]> (cherry picked from commit 5361121)
1 parent b45e226 commit bec15eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fb/fbpict.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@ create_bits_picture (PicturePtr pict,
163163
(pixman_format_code_t)pict->format,
164164
pixmap->drawable.width, pixmap->drawable.height,
165165
(uint32_t *)bits, stride * sizeof (FbStride));
166-
166+
167+
if (!image)
168+
return NULL;
167169

168170
#ifdef FB_ACCESS_WRAPPER
169171
#if FB_SHIFT==5

0 commit comments

Comments
 (0)