b5ba305851
Catch up with xpdf 3.00 pl2 and pl3 for various vulnerabilities, and a fix for CAN-2005-2097 from Kristian Hoegsberg. ok mbalmer@, pvalchev@
14 lines
425 B
Plaintext
14 lines
425 B
Plaintext
$OpenBSD: patch-xpdf_XRef_cc,v 1.1 2005/08/22 22:37:12 naddy Exp $
|
|
--- xpdf/XRef.cc.orig Sat Aug 20 22:14:19 2005
|
|
+++ xpdf/XRef.cc Sat Aug 20 22:16:10 2005
|
|
@@ -819,6 +819,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) {
|