summaryrefslogtreecommitdiffstats
path: root/editors/koffice-kde4
diff options
context:
space:
mode:
authorlofi <lofi@FreeBSD.org>2005-01-20 23:22:58 +0000
committerlofi <lofi@FreeBSD.org>2005-01-20 23:22:58 +0000
commit18006a0b3fd0488ff380e18018d03572e12c27a0 (patch)
tree903a05ae486ef16212c1e332860e232516d261c8 /editors/koffice-kde4
parentb38fdb4081267e891aa4ad1e61da51598b06a04d (diff)
downloadFreeBSD-ports-18006a0b3fd0488ff380e18018d03572e12c27a0.zip
FreeBSD-ports-18006a0b3fd0488ff380e18018d03572e12c27a0.tar.gz
Fix yet another buffer overflow in imported xpdf sources.
References: http://www.koffice.org/security/advisory-20050120-1.txt http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-0064 http://www.idefense.com/application/poi/display?id=186&type=vulnerabilities
Diffstat (limited to 'editors/koffice-kde4')
-rw-r--r--editors/koffice-kde4/Makefile2
-rw-r--r--editors/koffice-kde4/files/patch-post-1.3.5-koffice.diff15
2 files changed, 16 insertions, 1 deletions
diff --git a/editors/koffice-kde4/Makefile b/editors/koffice-kde4/Makefile
index 3b6102e..b5ec778 100644
--- a/editors/koffice-kde4/Makefile
+++ b/editors/koffice-kde4/Makefile
@@ -8,7 +8,7 @@
PORTNAME= koffice
PORTVERSION= 1.3.5
-PORTREVISION= 1
+PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= editors kde
MASTER_SITES= ${MASTER_SITE_KDE}
diff --git a/editors/koffice-kde4/files/patch-post-1.3.5-koffice.diff b/editors/koffice-kde4/files/patch-post-1.3.5-koffice.diff
new file mode 100644
index 0000000..4635b75
--- /dev/null
+++ b/editors/koffice-kde4/files/patch-post-1.3.5-koffice.diff
@@ -0,0 +1,15 @@
+--- filters/kword/pdf/xpdf/xpdf/XRef.cc 30 Oct 2004 16:35:33 -0000 1.6
++++ filters/kword/pdf/xpdf/xpdf/XRef.cc 20 Jan 2005 17:36:38 -0000 1.8
+@@ -501,6 +501,12 @@ GBool XRef::checkEncrypted(GString *owne
+ } else {
+ keyLength = 5;
+ }
++ if (keyLength < 1) {
++ keyLength = 1;
++ }
++ if (keyLength > 16) {
++ keyLength = 16;
++ }
+ permFlags = permissions.getInt();
+ if (encVersion >= 1 && encVersion <= 2 &&
+ encRevision >= 2 && encRevision <= 3) {
OpenPOWER on IntegriCloud