rev 6916 - in trunk/packages/qt-x11-free/debian: . patches
Ana Beatriz Guerrero López
ana at alioth.debian.org
Tue Jul 31 12:37:06 UTC 2007
Author: ana
Date: 2007-07-31 12:37:06 +0000 (Tue, 31 Jul 2007)
New Revision: 6916
Added:
trunk/packages/qt-x11-free/debian/patches/69_CVE-2007-3388.dpatch
Modified:
trunk/packages/qt-x11-free/debian/changelog
trunk/packages/qt-x11-free/debian/patches/00list
Log:
Patch for CVE-2007-3388
Modified: trunk/packages/qt-x11-free/debian/changelog
===================================================================
--- trunk/packages/qt-x11-free/debian/changelog 2007-07-31 00:45:39 UTC (rev 6915)
+++ trunk/packages/qt-x11-free/debian/changelog 2007-07-31 12:37:06 UTC (rev 6916)
@@ -1,3 +1,11 @@
+qt-x11-free (3:3.3.7-6) unstable; urgency=low
+
+ * Patch for potential vulnerability in QTextEdit, which might cause remote
+ execution when parsing maliciously crafted text from an unknown source.
+ CVE-2007-3388
+
+ -- Ana Beatriz Guerrero Lopez <ana at debian.org> Tue, 31 Jul 2007 13:34:00 +0200
+
qt-x11-free (3:3.3.7-5) unstable; urgency=low
+++ Changes by Sune Vuorela:
Modified: trunk/packages/qt-x11-free/debian/patches/00list
===================================================================
--- trunk/packages/qt-x11-free/debian/patches/00list 2007-07-31 00:45:39 UTC (rev 6915)
+++ trunk/packages/qt-x11-free/debian/patches/00list 2007-07-31 12:37:06 UTC (rev 6916)
@@ -45,4 +45,5 @@
65_gcc-4.2_qbuttons.h-fix.dpatch
66_gcc-4.3_compile-fix.dpatch
68_use-lfbclient_not-lgds
+69_CVE-2007-3388
90_armeabi
Added: trunk/packages/qt-x11-free/debian/patches/69_CVE-2007-3388.dpatch
===================================================================
--- trunk/packages/qt-x11-free/debian/patches/69_CVE-2007-3388.dpatch (rev 0)
+++ trunk/packages/qt-x11-free/debian/patches/69_CVE-2007-3388.dpatch 2007-07-31 12:37:06 UTC (rev 6916)
@@ -0,0 +1,188 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 69_CVE-2007-3388.dpatch by
+## http://trolltech.com/company/newsroom/announcements/press.2007-07-27.7503755960
+##
+
+ at DPATCH@
+--- qt3/src/widgets/qtextedit.cpp Mon Jul 16 10:44:40 CEST 2007
++++ qt3/src/widgets/qtextedit.cpp Mon Jul 16 10:44:40 CEST 2007
+@@ -6349,7 +6349,7 @@
+ cur = tag->prev;
+ if ( !cur ) {
+ #ifdef QT_CHECK_RANGE
+- qWarning( "QTextEdit::optimParseTags: no left-tag for '<" + tag->tag + ">' in line %d.", tag->line + 1 );
++ qWarning( "QTextEdit::optimParseTags: no left-tag for '<%s>' in line %d.", tag->tag.ascii(), tag->line + 1 );
+ #endif
+ return; // something is wrong - give up
+ }
+@@ -6372,7 +6372,7 @@
+ break;
+ } else if ( !cur->leftTag ) {
+ #ifdef QT_CHECK_RANGE
+- qWarning( "QTextEdit::optimParseTags: mismatching %s-tag for '<" + cur->tag + ">' in line %d.", cur->tag[0] == '/' ? "left" : "right", cur->line + 1 );
++ qWarning( "QTextEdit::optimParseTags: mismatching %s-tag for '<%s>' in line %d.", cur->tag[0] == '/' ? "left" : "right", cur->tag.ascii(), cur->line + 1 );
+ #endif
+ return; // something is amiss - give up
+ }
+--- qt3/src/sql/qdatatable.cpp Mon Jul 16 10:45:03 CEST 2007
++++ qt3/src/sql/qdatatable.cpp Mon Jul 16 10:45:03 CEST 2007
+@@ -1043,8 +1043,8 @@
+ return FALSE;
+ if ( !sqlCursor()->canInsert() ) {
+ #ifdef QT_CHECK_RANGE
+- qWarning("QDataTable::insertCurrent: insert not allowed for " +
+- sqlCursor()->name() );
++ qWarning("QDataTable::insertCurrent: insert not allowed for %s",
++ sqlCursor()->name().latin1() );
+ #endif
+ endInsert();
+ return FALSE;
+@@ -1117,16 +1117,16 @@
+ return FALSE;
+ if ( sqlCursor()->primaryIndex().count() == 0 ) {
+ #ifdef QT_CHECK_RANGE
+- qWarning("QDataTable::updateCurrent: no primary index for " +
+- sqlCursor()->name() );
++ qWarning("QDataTable::updateCurrent: no primary index for %s",
++ sqlCursor()->name().latin1() );
+ #endif
+ endUpdate();
+ return FALSE;
+ }
+ if ( !sqlCursor()->canUpdate() ) {
+ #ifdef QT_CHECK_RANGE
+- qWarning("QDataTable::updateCurrent: updates not allowed for " +
+- sqlCursor()->name() );
++ qWarning("QDataTable::updateCurrent: updates not allowed for %s",
++ sqlCursor()->name().latin1() );
+ #endif
+ endUpdate();
+ return FALSE;
+@@ -1191,8 +1191,8 @@
+ return FALSE;
+ if ( sqlCursor()->primaryIndex().count() == 0 ) {
+ #ifdef QT_CHECK_RANGE
+- qWarning("QDataTable::deleteCurrent: no primary index " +
+- sqlCursor()->name() );
++ qWarning("QDataTable::deleteCurrent: no primary index %s",
++ sqlCursor()->name().latin1() );
+ #endif
+ return FALSE;
+ }
+
+--- qt3/src/sql/qsqldatabase.cpp Mon Jul 16 10:45:03 CEST 2007
++++ qt3/src/sql/qsqldatabase.cpp Mon Jul 16 10:45:03 CEST 2007
+@@ -234,7 +234,8 @@
+ db->open();
+ #ifdef QT_CHECK_RANGE
+ if ( !db->isOpen() )
+- qWarning("QSqlDatabaseManager::database: unable to open database: " + db->lastError().databaseText() + ": " + db->lastError().driverText() );
++ qWarning("QSqlDatabaseManager::database: unable to open database: %s: %s",
++ db->lastError().databaseText().latin1(), db->lastError().driverText().latin1() );
+ #endif
+ }
+ return db;
+@@ -686,7 +687,7 @@
+ if ( !d->driver ) {
+ #ifdef QT_CHECK_RANGE
+ qWarning( "QSqlDatabase: %s driver not loaded", type.latin1() );
+- qWarning( "QSqlDatabase: available drivers: " + drivers().join(" ") );
++ qWarning( "QSqlDatabase: available drivers: %s", drivers().join(" ").latin1() );
+ #endif
+ d->driver = new QNullDriver();
+ d->driver->setLastError( QSqlError( "Driver not loaded", "Driver not loaded" ) );
+
+--- qt3/src/sql/qsqlindex.cpp Mon Jul 16 10:45:03 CEST 2007
++++ qt3/src/sql/qsqlindex.cpp Mon Jul 16 10:45:03 CEST 2007
+@@ -273,7 +273,7 @@
+ if ( field )
+ newSort.append( *field, desc );
+ else
+- qWarning( "QSqlIndex::fromStringList: unknown field: '" + f + "'" );
++ qWarning( "QSqlIndex::fromStringList: unknown field: '%s'", f.latin1());
+ }
+ return newSort;
+ }
+
+--- qt3/src/sql/qsqlrecord.cpp Mon Jul 16 10:45:03 CEST 2007
++++ qt3/src/sql/qsqlrecord.cpp Mon Jul 16 10:45:03 CEST 2007
+@@ -298,7 +298,7 @@
+ return i;
+ }
+ #ifdef QT_CHECK_RANGE
+- qWarning( "QSqlRecord::position: unable to find field " + name );
++ qWarning( "QSqlRecord::position: unable to find field %s", name.latin1() );
+ #endif
+ return -1;
+ }
+@@ -313,7 +313,7 @@
+ checkDetach();
+ if ( !sh->d->contains( i ) ) {
+ #ifdef QT_CHECK_RANGE
+- qWarning( "QSqlRecord::field: index out of range: " + QString::number( i ) );
++ qWarning( "QSqlRecord::field: index out of range: %d", i );
+ #endif
+ return 0;
+ }
+@@ -344,7 +344,7 @@
+ {
+ if ( !sh->d->contains( i ) ) {
+ #ifdef QT_CHECK_RANGE
+- qWarning( "QSqlRecord::field: index out of range: " + QString::number( i ) );
++ qWarning( "QSqlRecord::field: index out of range: %d", i );
+ #endif // QT_CHECK_RANGE
+ return 0;
+ }
+
+--- qt3/src/tools/qglobal.cpp Mon Jul 16 10:45:03 CEST 2007
++++ qt3/src/tools/qglobal.cpp Mon Jul 16 10:45:03 CEST 2007
+@@ -680,7 +680,7 @@
+ if ( code != -1 )
+ qWarning( "%s\n\tError code %d - %s", msg, code, strerror( code ) );
+ else
+- qWarning( msg );
++ qWarning( "%s", msg );
+ #endif
+ #else
+ Q_UNUSED( msg );
+
+--- qt3/src/xml/qsvgdevice.cpp Mon Jul 16 10:45:03 CEST 2007
++++ qt3/src/xml/qsvgdevice.cpp Mon Jul 16 10:45:03 CEST 2007
+@@ -978,7 +978,7 @@
+ // ### catch references to embedded .svg files
+ QPixmap pix;
+ if ( !pix.load( href ) ) {
+- qWarning( "QSvgDevice::play: Couldn't load image "+href );
++ qWarning( "QSvgDevice::play: Couldn't load image %s", href.latin1() );
+ break;
+ }
+ pt->drawPixmap( QRect( x1, y1, w, h ), pix );
+@@ -1024,8 +1024,8 @@
+ break;
+ }
+ case InvalidElement:
+- qWarning( "QSvgDevice::play: unknown element type " +
+- node.nodeName() );
++ qWarning( "QSvgDevice::play: unknown element type %s",
++ node.nodeName().latin1() );
+ break;
+ };
+
+@@ -1111,7 +1111,7 @@
+ {
+ QRegExp reg( QString::fromLatin1("([+-]?\\d*\\.*\\d*[Ee]?[+-]?\\d*)(em|ex|px|%|pt|pc|cm|mm|in|)$") );
+ if ( reg.search( str ) == -1 ) {
+- qWarning( "QSvgDevice::parseLen: couldn't parse " + str );
++ qWarning( "QSvgDevice::parseLen: couldn't parse %s ", str.latin1() );
+ if ( ok )
+ *ok = FALSE;
+ return 0.0;
+@@ -1140,7 +1140,7 @@
+ else if ( u == "pc" )
+ dbl *= m.logicalDpiX() / 6.0;
+ else
+- qWarning( "QSvgDevice::parseLen: Unknown unit " + u );
++ qWarning( "QSvgDevice::parseLen: Unknown unit %s", u.latin1() );
+ }
+ if ( ok )
+ *ok = TRUE;
More information about the pkg-kde-commits
mailing list