summaryrefslogtreecommitdiffstats
path: root/opensuse/core/qt3/fix-qtranslator-crash.diff
diff options
context:
space:
mode:
Diffstat (limited to 'opensuse/core/qt3/fix-qtranslator-crash.diff')
-rw-r--r--opensuse/core/qt3/fix-qtranslator-crash.diff11
1 files changed, 11 insertions, 0 deletions
diff --git a/opensuse/core/qt3/fix-qtranslator-crash.diff b/opensuse/core/qt3/fix-qtranslator-crash.diff
new file mode 100644
index 000000000..e28d7126a
--- /dev/null
+++ b/opensuse/core/qt3/fix-qtranslator-crash.diff
@@ -0,0 +1,11 @@
+--- src/kernel/qtranslator.cpp
++++ src/kernel/qtranslator.cpp
+@@ -1012,7 +1012,7 @@
+ char con[256];
+ for ( ;; ) {
+ t >> len;
+- if ( len == 0 )
++ if ( len == 0 || t.atEnd())
+ return QTranslatorMessage();
+ t.readRawBytes( con, len );
+ con[len] = '\0';