diff options
author | drochner <drochner@pkgsrc.org> | 2005-01-27 12:27:47 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2005-01-27 12:27:47 +0000 |
commit | 882adb11af03a66fbcbdddd741790c0d95e37723 (patch) | |
tree | 76072f7b21d271061dc1c5db033ffee1782b8607 /devel/libextractor/patches/patch-ad | |
parent | 8f4e3f6ec0502bb5149fa7f00603f15940be56b5 (diff) | |
download | pkgsrc-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-ad | 14 |
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) { |