summaryrefslogtreecommitdiffstats
path: root/editors/koffice-kde4/files/patch-post-1.3.5-koffice.diff
blob: 4635b7562fac16fea599c7f5cf60befe9a809ddf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- filters/kword/pdf/xpdf/xpdf/XRef.cc	30 Oct 2004 16:35:33 -0000	1.6
+++ filters/kword/pdf/xpdf/xpdf/XRef.cc	20 Jan 2005 17:36:38 -0000	1.8
@@ -501,6 +501,12 @@ GBool XRef::checkEncrypted(GString *owne
 	} else {
 	  keyLength = 5;
 	}
+	if (keyLength < 1) {
+	  keyLength = 1;
+	}
+	if (keyLength > 16) {
+	  keyLength = 16;
+	}
 	permFlags = permissions.getInt();
 	if (encVersion >= 1 && encVersion <= 2 &&
 	    encRevision >= 2 && encRevision <= 3) {
OpenPOWER on IntegriCloud