diff options
author | lofi <lofi@FreeBSD.org> | 2007-09-18 16:19:55 +0800 |
---|---|---|
committer | lofi <lofi@FreeBSD.org> | 2007-09-18 16:19:55 +0800 |
commit | 4cb3fa6d1d999248e2d83f63bf2026cc977865b9 (patch) | |
tree | 010ad6da392b30c4c0c51765260df71a0f615586 /devel/qt4-corelib | |
parent | 4a826d139e6cd1fb8ac40f14c23e8f4bdaf52d78 (diff) | |
download | freebsd-ports-gnome-4cb3fa6d1d999248e2d83f63bf2026cc977865b9.tar.gz freebsd-ports-gnome-4cb3fa6d1d999248e2d83f63bf2026cc977865b9.tar.zst freebsd-ports-gnome-4cb3fa6d1d999248e2d83f63bf2026cc977865b9.zip |
Fix potential vulnerability from an off-by-one error in the QUtf8Decoder
class.
Security: CVS-2007-4137
Diffstat (limited to 'devel/qt4-corelib')
-rw-r--r-- | devel/qt4-corelib/Makefile | 2 | ||||
-rw-r--r-- | devel/qt4-corelib/files/patch-CVE-2007-4137 | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/devel/qt4-corelib/Makefile b/devel/qt4-corelib/Makefile index c98fe7b206ef..2ec4db79b5ad 100644 --- a/devel/qt4-corelib/Makefile +++ b/devel/qt4-corelib/Makefile @@ -8,7 +8,7 @@ PORTNAME= corelib PORTVERSION= ${QT4_VERSION} -PORTREVISION= 0 +PORTREVISION= 1 CATEGORIES?= devel MASTER_SITES= ${MASTER_SITE_QT} PKGNAMEPREFIX= qt4- diff --git a/devel/qt4-corelib/files/patch-CVE-2007-4137 b/devel/qt4-corelib/files/patch-CVE-2007-4137 new file mode 100644 index 000000000000..e2bbdd06eb5b --- /dev/null +++ b/devel/qt4-corelib/files/patch-CVE-2007-4137 @@ -0,0 +1,11 @@ +--- src/corelib/codecs/qutfcodec.cpp ++++ src/corelib/codecs/qutfcodec.cpp +@@ -140,7 +140,7 @@ void QUtf8Codec::convertToUnicode(QString *target, const char *chars, int len, C + + int originalLength = target->length(); + QString &result = *target; +- result.resize(originalLength + len); // worst case ++ result.resize(originalLength + len + 1); // worst case + QChar *qch = result.data() + originalLength; + uchar ch; + int invalid = 0; |