From 652d9b47fc902e12c8e28481742c382676f1d035 Mon Sep 17 00:00:00 2001 From: Jay Cotton Date: Wed, 2 Feb 2011 22:09:34 -0800 Subject: XftDrawSrcPicture: fail if info->solidFormat is NULL 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 --- src/xftdraw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; /* -- cgit v1.2.1