SOURCES: qt-overflow.patch (NEW) - new
arekm
arekm at pld-linux.org
Wed Oct 18 20:46:34 CEST 2006
Author: arekm Date: Wed Oct 18 18:46:34 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- new
---- Files affected:
SOURCES:
qt-overflow.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/qt-overflow.patch
diff -u /dev/null SOURCES/qt-overflow.patch:1.1
--- /dev/null Wed Oct 18 20:46:34 2006
+++ SOURCES/qt-overflow.patch Wed Oct 18 20:46:29 2006
@@ -0,0 +1,26 @@
+--- qt/src/kernel/qpixmap_x11.cpp.josh 2006-10-13 23:30:27.000000000 -0400
++++ qt/src/kernel/qpixmap_x11.cpp 2006-10-14 00:31:01.000000000 -0400
+@@ -1758,6 +1758,11 @@ QPixmap QPixmap::xForm( const QWMatrix &
+ dbpl = ((w*bpp+31)/32)*4;
+ dbytes = dbpl*h;
+
++ if (dbytes != (long long) dbpl*h) { // Integer overflow detection
++ QPixmap pm;
++ pm.data->bitmap = data->bitmap;
++ return pm;
++ }
+
+ #if defined(QT_MITSHM)
+ if ( use_mitshm ) {
+@@ -1867,6 +1873,11 @@ QPixmap QPixmap::xForm( const QWMatrix &
+ sptr = (uchar *) axi->data;
+ bpp = axi->bits_per_pixel;
+ dbytes = dbpl * h;
++ if (dbytes != (long long) dbpl*h) { // Integer overflow detection
++ QPixmap pm;
++ pm.data->bitmap = data->bitmap;
++ return pm;
++ }
+ dptr = (uchar *) malloc(dbytes);
+ Q_CHECK_PTR( dptr );
+ memset(dptr, 0, dbytes);
================================================================
More information about the pld-cvs-commit
mailing list