Commit d923b1e8 authored by Waldo Bastian's avatar Waldo Bastian
Browse files

Call me paranoid, but keyLength == 0 sounds like trouble.

svn path=/trunk/kdegraphics/kpdf/; revision=380498
parent 02ddb10d
...@@ -820,6 +820,9 @@ GBool XRef::checkEncrypted(GString *ownerPassword, GString *userPassword) { ...@@ -820,6 +820,9 @@ GBool XRef::checkEncrypted(GString *ownerPassword, GString *userPassword) {
} else { } else {
keyLength = 5; keyLength = 5;
} }
if (keyLength < 1) {
keyLength = 1;
}
if (keyLength > 16) { if (keyLength > 16) {
keyLength = 16; keyLength = 16;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment