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