1 --- src/corelib/codecs/qutfcodec.cpp
2 +++ src/corelib/codecs/qutfcodec.cpp
3 @@ -140,7 +140,7 @@ void QUtf8Codec::convertToUnicode(QString *target, const char *chars, int len, C
5 int originalLength = target->length();
6 QString &result = *target;
7 - result.resize(originalLength + len); // worst case
8 + result.resize(originalLength + len + 1); // worst case
9 QChar *qch = result.data() + originalLength;