# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/qt3/CVE-2007-4137.patch # Copyright (C) 2007 - 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-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