From 3e57876ec3ca176c3d695256497b8bd029cbd88c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Tue, 16 Sep 2014 03:31:21 +0200 Subject: Fix crash in TQTranslator --- src/kernel/qtranslator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/kernel/qtranslator.cpp b/src/kernel/qtranslator.cpp index 5f3eec77e..884c81977 100644 --- a/src/kernel/qtranslator.cpp +++ b/src/kernel/qtranslator.cpp @@ -1015,7 +1015,7 @@ TQTranslatorMessage TQTranslator::findMessage( const char* context, char con[256]; for ( ;; ) { t >> len; - if ( len == 0 ) + if ( len == 0 || t.atEnd() ) return TQTranslatorMessage(); t.readRawBytes( con, len ); con[len] = '\0'; -- cgit v1.2.1