--- src/corelib/codecs/qutfcodec.cpp.cve-2007-4137 2007-09-13 13:52:42.000000000 -0400 +++ src/corelib/codecs/qutfcodec.cpp 2007-09-13 13:54:58.000000000 -0400 @@ -150,7 +150,7 @@ QString QUtf8Codec::convertToUnicode(con } QString result; - result.resize(len); // worst case + result.resize(len + 1); // worst case QChar *qch = result.data(); uchar ch; int invalid = 0;