Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pdf
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2005-01-19 19:32:44 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-01-19 19:32:44 (GMT)
commitdd1c805ae5ff6e6379c67e1dca48affd1306b6e9 (patch)
treecac9abd89cf8f34a4208f8ef102160c5f729b0b8 /pdf
parent1bc3a4799f696f5a5ba29bd4c4fe35c1c023f8dd (diff)
Fix CAN-2005-0064
2005-01-19 Marco Pesenti Gritti <marco@gnome.org> * pdf/xpdf/XRef.cc: Fix CAN-2005-0064
Diffstat (limited to 'pdf')
-rw-r--r--pdf/xpdf/XRef.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/pdf/xpdf/XRef.cc b/pdf/xpdf/XRef.cc
index afb787d..f5c4159 100644
--- a/pdf/xpdf/XRef.cc
+++ b/pdf/xpdf/XRef.cc
@@ -819,6 +819,9 @@ GBool XRef::checkEncrypted(GString *ownerPassword, GString *userPassword) {
} else {
keyLength = 5;
}
+ if (keyLength > 16) {
+ keyLength = 16;
+ }
permFlags = permissions.getInt();
if (encVersion >= 1 && encVersion <= 2 &&
encRevision >= 2 && encRevision <= 3) {