(cherry picked from commit a944830520)
a944830520
@ -1015,7 +1015,7 @@ QTranslatorMessage QTranslator::findMessage( const char* context,
char con[256];
for ( ;; ) {
t >> len;
if ( len == 0 )
if ( len == 0 || t.atEnd() )
return QTranslatorMessage();
t.readRawBytes( con, len );
con[len] = '\0';