# --- T2-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # T2 SDE: package/.../qt/CVE-2007-4137.patch # Copyright (C) 2007 The T2 SDE Project # # More information can be found in the files COPYING and README. # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any later # version. # --- T2-COPYRIGHT-NOTE-END --- diff -Nur qt-x11-free-3.3.8-orig/src/codecs/qutfcodec.cpp qt-x11-free-3.3.8/src/codecs/qutfcodec.cpp --- qt-x11-free-3.3.8-orig/src/codecs/qutfcodec.cpp 2007-11-04 18:01:49.000000000 +0000 +++ qt-x11-free-3.3.8/src/codecs/qutfcodec.cpp 2007-11-04 18:03:26.000000000 +0000 @@ -164,7 +164,7 @@ QString toUnicode(const char* chars, int len) { QString result; - result.setLength( len ); // worst case + result.setLength( len + 1 ); // worst case QChar *qch = (QChar *)result.unicode(); uchar ch; for (int i=0; i