mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 11:40:12 +01:00
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>
(cherry picked from commit 5361121339)
This commit is contained in:
parent
b45e226753
commit
bec15eb73a
1 changed files with 3 additions and 1 deletions
|
|
@ -164,6 +164,8 @@ create_bits_picture (PicturePtr pict,
|
||||||
pixmap->drawable.width, pixmap->drawable.height,
|
pixmap->drawable.width, pixmap->drawable.height,
|
||||||
(uint32_t *)bits, stride * sizeof (FbStride));
|
(uint32_t *)bits, stride * sizeof (FbStride));
|
||||||
|
|
||||||
|
if (!image)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
#ifdef FB_ACCESS_WRAPPER
|
#ifdef FB_ACCESS_WRAPPER
|
||||||
#if FB_SHIFT==5
|
#if FB_SHIFT==5
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue