rpms/xorg-x11-server/devel xserver-1.5.1-exa-fix-glyph-segfault.patch, NONE, 1.1 xorg-x11-server.spec, 1.356, 1.357

Dave Airlie airlied at fedoraproject.org
Mon Oct 6 01:50:01 UTC 2008


Author: airlied

Update of /cvs/pkgs/rpms/xorg-x11-server/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv25789

Modified Files:
	xorg-x11-server.spec 
Added Files:
	xserver-1.5.1-exa-fix-glyph-segfault.patch 
Log Message:
* Mon Oct 06 2008 Dave Airlie <airlied at redhat.com> 1.5.1-5
- xserver-1.5.1-exa-fix-glyph-segfault.patch - fix EXA rects crash (462447)


xserver-1.5.1-exa-fix-glyph-segfault.patch:

--- NEW FILE xserver-1.5.1-exa-fix-glyph-segfault.patch ---
>From 5ab230373909541945d373252a3f244b68a6f7af Mon Sep 17 00:00:00 2001
From: Fedora X Ninjas <x at fedoraproject.org>
Date: Mon, 6 Oct 2008 11:43:05 +1000
Subject: [PATCH] exa: fix case where glyphs get flushed on last loop of previous cycle.

we segfault here in exaCompositeRects as we have no source as already
flushed just before the loop finished.
---
 exa/exa_glyphs.c |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/exa/exa_glyphs.c b/exa/exa_glyphs.c
index b23e7f6..2efc42d 100644
--- a/exa/exa_glyphs.c
+++ b/exa/exa_glyphs.c
@@ -872,11 +872,13 @@ exaGlyphs (CARD8 	 op,
 	list++;
     }
     
-    if (maskFormat)
-	exaGlyphsToMask(pMask, &buffer);
-    else
-	exaGlyphsToDst(op, pSrc, pDst, &buffer,
-		       xSrc, ySrc, xDst, yDst);
+    if (buffer.count && buffer.source) {
+        if (maskFormat)
+	    exaGlyphsToMask(pMask, &buffer);
+        else
+	    exaGlyphsToDst(op, pSrc, pDst, &buffer,
+		           xSrc, ySrc, xDst, yDst);
+    }
     
     if (maskFormat)
     {
-- 
1.5.5.1



Index: xorg-x11-server.spec
===================================================================
RCS file: /cvs/pkgs/rpms/xorg-x11-server/devel/xorg-x11-server.spec,v
retrieving revision 1.356
retrieving revision 1.357
diff -u -r1.356 -r1.357
--- xorg-x11-server.spec	30 Sep 2008 21:33:21 -0000	1.356
+++ xorg-x11-server.spec	6 Oct 2008 01:49:31 -0000	1.357
@@ -19,7 +19,7 @@
 Summary:   X.Org X11 X server
 Name:      xorg-x11-server
 Version:   1.5.1
-Release:   4%{?dist}
+Release:   5%{?dist}
 URL:       http://www.x.org
 License:   MIT
 Group:     User Interface/X
@@ -509,6 +509,9 @@
 
 
 %changelog
+* Mon Oct 06 2008 Dave Airlie <airlied at redhat.com> 1.5.1-5
+- xserver-1.5.1-exa-fix-glyph-segfault.patch - fix EXA rects crash (462447)
+
 * Tue Sep 30 2008 Tom "spot" Callaway <tcallawa at redhat.com> 1.5.1-4
 - fix typo. :P
 




More information about the scm-commits mailing list