When EXA is enabled, X crashes when I start sugar because of a NULL pointer
dereference.

All of the other checks in this function first check that pMaskPicture is
non-NULL, but this one was left out.

Index: xf86-video-openchrome-0.2.903/src/via_accel.c
===================================================================
--- xf86-video-openchrome-0.2.903.orig/src/via_accel.c
+++ xf86-video-openchrome-0.2.903/src/via_accel.c
@@ -2069,7 +2069,7 @@ viaExaCheckComposite(int op, PicturePtr 
         pMaskPicture->pDrawable->height < VIA_MIN_COMPOSITE)
         return FALSE;
 
-    if (pMaskPicture->repeat != RepeatNormal)
+    if (pMaskPicture && pMaskPicture->repeat != RepeatNormal)
         return FALSE;
 
     if (pMaskPicture && pMaskPicture->componentAlpha) {

_______________________________________________
Openchrome-devel mailing list
[email protected]
http://wiki.openchrome.org/mailman/listinfo/openchrome-devel


Reply via email to