[PATCH:libXft 1/2] XftDrawSrcPicture: fail if info->solidFormat is NULL
Alan Coopersmith
alan.coopersmith at oracle.com
Wed Feb 2 22:22:17 PST 2011
From: Jay Cotton <jay.cotton at oracle.com>
Fixed a core dump in x11perf render tests when a driver was returning
incorrect information due to a bug in the driver.
http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6872780
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
src/xftdraw.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/xftdraw.c b/src/xftdraw.c
index ab51749..21f8538 100644
--- a/src/xftdraw.c
+++ b/src/xftdraw.c
@@ -301,7 +301,7 @@ XftDrawSrcPicture (XftDraw *draw, _Xconst XftColor *color)
int i;
XftColor bitmapColor;
- if (!info)
+ if (!info || !info->solidFormat)
return 0;
/*
--
1.7.3.2
More information about the xorg-devel
mailing list