summaryrefslogtreecommitdiffstats
path: root/mageia/dependencies/qt3/qt-x11-free-3.3.5-qtranslator-crash.patch
blob: a6b89666493cc63871b87edaf58df43e3d465a2c (plain)
1
2
3
4
5
6
7
8
9
10
11
--- src/kernel/qtranslator.cpp.sav	2004-08-12 14:32:07.000000000 +0200
+++ src/kernel/qtranslator.cpp	2005-03-15 18:05:29.620141650 +0100
@@ -990,7 +990,7 @@ QTranslatorMessage QTranslator::findMess
 	char con[256];
 	for ( ;; ) {
 	    t >> len;
-	    if ( len == 0 )
+	    if ( len == 0 || t.atEnd())
 		return QTranslatorMessage();
 	    t.readRawBytes( con, len );
 	    con[len] = '\0';