[qt] - Crash in drawPixmap in Qt 4.7rc1 (#631845, QTBUG-12826)

Rex Dieter rdieter at fedoraproject.org
Wed Sep 8 14:31:29 UTC 2010


commit f8f69bf18e764a7a10f931932ba9e69b1f8e0bdd
Author: Rex Dieter <rdieter at fedoraproject.org>
Date:   Wed Sep 8 09:36:59 2010 -0500

    - Crash in drawPixmap in Qt 4.7rc1 (#631845, QTBUG-12826)

 ...here-opensource-src-4.7.0-rc1-QTBUG-12826.patch |   13 +++++++++++++
 qt.spec                                            |    8 +++++++-
 2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/qt-everywhere-opensource-src-4.7.0-rc1-QTBUG-12826.patch b/qt-everywhere-opensource-src-4.7.0-rc1-QTBUG-12826.patch
new file mode 100644
index 0000000..ca7cb2e
--- /dev/null
+++ b/qt-everywhere-opensource-src-4.7.0-rc1-QTBUG-12826.patch
@@ -0,0 +1,13 @@
+diff --git a/src/gui/painting/qpaintengine_x11.cpp b/src/gui/painting/qpaintengine_x11.cpp
+index e521e01..d430f77 100644
+--- a/src/gui/painting/qpaintengine_x11.cpp
++++ b/src/gui/painting/qpaintengine_x11.cpp
+@@ -1914,6 +1914,8 @@ void QX11PaintEngine::drawPixmap(const QRectF &r, const QPixmap &px, const QRect
+     int sh = qRound(sr.height());
+ 
+     QPixmap pixmap = qt_toX11Pixmap(px);
++    if (pixmap.isNull())
++        return;
+ 
+     if ((d->xinfo && d->xinfo->screen() != pixmap.x11Info().screen())
+         || (pixmap.x11Info().screen() != DefaultScreen(X11->display))) {
diff --git a/qt.spec b/qt.spec
index d0937eb..5600251 100644
--- a/qt.spec
+++ b/qt.spec
@@ -17,7 +17,7 @@ Summary: Qt toolkit
 Name:    qt
 Epoch:   1
 Version: 4.7.0
-Release: 0.29.%{pre}%{?dist}
+Release: 0.30.%{pre}%{?dist}
 
 # See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
 License: LGPLv2 with exceptions or GPLv3 with exceptions
@@ -65,6 +65,8 @@ Patch58: qt-everywhere-opensource-src-4.7.0-beta1-qtwebkit_pluginpath.patch
 # security patches
 
 # upstream patches
+# http://bugreports.qt.nokia.com/browse/QTBUG-12826
+Patch100: qt-everywhere-opensource-src-4.7.0-rc1-QTBUG-12826.patch
 
 # kde-qt git patches
 Patch201: 0001-This-patch-uses-object-name-as-a-fallback-for-window.patch
@@ -421,6 +423,7 @@ Qt libraries used for drawing widgets and OpenGL items.
 # security fixes
 
 # upstream patches
+%patch100 -p1 -b  .QTBUG-12826
 
 # kde-qt branch
 %if 0%{?kde_qt}
@@ -1086,6 +1089,9 @@ fi
 
 
 %changelog
+* Wed Sep 08 2010 Rex Dieter <rdieter at fedoraproject.org> - 4.7.0-0.30.rc1
+- Crash in drawPixmap in Qt 4.7rc1 (#631845, QTBUG-12826)
+
 * Mon Aug 30 2010 Than Ngo <than at redhat.com> - 4.7.0-0.29.rc1
 - drop the patch, it's already fixed in upstream
 


More information about the scm-commits mailing list