summaryrefslogtreecommitdiff
path: root/devel/libextractor/patches/patch-ad
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2005-01-27 12:27:47 +0000
committerdrochner <drochner@pkgsrc.org>2005-01-27 12:27:47 +0000
commit882adb11af03a66fbcbdddd741790c0d95e37723 (patch)
tree76072f7b21d271061dc1c5db033ffee1782b8607 /devel/libextractor/patches/patch-ad
parent8f4e3f6ec0502bb5149fa7f00603f15940be56b5 (diff)
downloadpkgsrc-882adb11af03a66fbcbdddd741790c0d95e37723.tar.gz
another one afeected by the recent xpdf security problem;
apply a similar patch bump PKGREVISION (there is a 0.4.1 according to freshmeat, but I can't find it)
Diffstat (limited to 'devel/libextractor/patches/patch-ad')
-rw-r--r--devel/libextractor/patches/patch-ad14
1 files changed, 14 insertions, 0 deletions
diff --git a/devel/libextractor/patches/patch-ad b/devel/libextractor/patches/patch-ad
new file mode 100644
index 00000000000..280f24cf2bc
--- /dev/null
+++ b/devel/libextractor/patches/patch-ad
@@ -0,0 +1,14 @@
+$NetBSD: patch-ad,v 1.1 2005/01/27 12:27:47 drochner Exp $
+
+--- src/plugins/pdf/XRef.cc.orig 2004-10-05 22:19:23.000000000 +0200
++++ src/plugins/pdf/XRef.cc
+@@ -757,6 +757,9 @@ GBool XRef::checkEncrypted(GString *owne
+ } else {
+ keyLength = 5;
+ }
++ if (keyLength > 16) {
++ keyLength = 16;
++ }
+ permFlags = permissions.getInt();
+ if (encVersion >= 1 && encVersion <= 2 &&
+ encRevision >= 2 && encRevision <= 3) {