summaryrefslogtreecommitdiff
path: root/misc/koffice/patches
diff options
context:
space:
mode:
authormarkd <markd@pkgsrc.org>2005-01-21 11:32:12 +0000
committermarkd <markd@pkgsrc.org>2005-01-21 11:32:12 +0000
commitc05a4ba719bc83657d9e19ab5e9d2698dc2a0f70 (patch)
tree29396af5c77b328c1a56be36a0803860e6d04ae3 /misc/koffice/patches
parent917563eb6cab95d16e9685272f1799e9ac477417 (diff)
downloadpkgsrc-c05a4ba719bc83657d9e19ab5e9d2698dc2a0f70.tar.gz
latest xpdf vulnerability as it occurs in kword pdf import filter.
http://www.kde.org/info/security/advisory-20050120-1.txt Bump PKGREVISION.
Diffstat (limited to 'misc/koffice/patches')
-rw-r--r--misc/koffice/patches/patch-ae17
1 files changed, 17 insertions, 0 deletions
diff --git a/misc/koffice/patches/patch-ae b/misc/koffice/patches/patch-ae
new file mode 100644
index 00000000000..c04df30f38b
--- /dev/null
+++ b/misc/koffice/patches/patch-ae
@@ -0,0 +1,17 @@
+$NetBSD: patch-ae,v 1.6 2005/01/21 11:32:12 markd Exp $
+
+--- filters/kword/pdf/xpdf/xpdf/XRef.cc.orig 2004-10-31 05:43:18.000000000 +1300
++++ filters/kword/pdf/xpdf/xpdf/XRef.cc
+@@ -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) {