summaryrefslogtreecommitdiff
path: root/devel/libextractor/patches/patch-ad
diff options
context:
space:
mode:
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) {