diff options
Diffstat (limited to 'x11/qt3-libs/patches/patch-aq')
-rw-r--r-- | x11/qt3-libs/patches/patch-aq | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/x11/qt3-libs/patches/patch-aq b/x11/qt3-libs/patches/patch-aq index 9435b77513c..4f608b62e78 100644 --- a/x11/qt3-libs/patches/patch-aq +++ b/x11/qt3-libs/patches/patch-aq @@ -1,7 +1,10 @@ -$NetBSD: patch-aq,v 1.1 2007/04/06 12:44:38 markd Exp $ +$NetBSD: patch-aq,v 1.2 2007/09/15 12:04:01 tron Exp $ ---- src/codecs/qutfcodec.cpp -+++ src/codecs/qutfcodec.cpp +http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-0242 +http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-4137 + +--- src/codecs/qutfcodec.cpp.orig 2007-02-02 14:01:08.000000000 +0000 ++++ src/codecs/qutfcodec.cpp 2007-09-15 12:12:18.000000000 +0100 @@ -154,6 +154,7 @@ class QUtf8Decoder : public QTextDecoder { @@ -10,8 +13,12 @@ $NetBSD: patch-aq,v 1.1 2007/04/06 12:44:38 markd Exp $ int need; bool headerDone; public: -@@ -167,8 +168,9 @@ - result.setLength( len ); // worst case +@@ -164,11 +165,12 @@ + 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; + int error = -1; |