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)
This commit is contained in:
drochner 2005-01-27 12:27:47 +00:00
parent 8f4e3f6ec0
commit 882adb11af
3 changed files with 18 additions and 2 deletions

View file

@ -1,7 +1,8 @@
# $NetBSD: Makefile,v 1.3 2004/11/29 02:25:26 tv Exp $
# $NetBSD: Makefile,v 1.4 2005/01/27 12:27:47 drochner Exp $
#
DISTNAME= libextractor-0.3.11
PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://ovmj.org/libextractor/download/

View file

@ -1,7 +1,8 @@
$NetBSD: distinfo,v 1.2 2004/11/29 02:25:26 tv Exp $
$NetBSD: distinfo,v 1.3 2005/01/27 12:27:47 drochner Exp $
SHA1 (libextractor-0.3.11.tar.gz) = 8b4e04121764f2221d162a7bf9c751fd15c7a5da
Size (libextractor-0.3.11.tar.gz) = 5766585 bytes
SHA1 (patch-aa) = e3c770fd3a0cc918cf1f05f79cb1a148dd928533
SHA1 (patch-ab) = 3d8cf383a9edf340b6289cb2b4fa98e3029efdef
SHA1 (patch-ac) = ddc548f3252f4ddb13df5777518092721f03f594
SHA1 (patch-ad) = 1b8f99cd823c20dd134aedf6914f00019e3bda76

View file

@ -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) {