Commit a8a6011b authored by Tobias Koenig's avatar Tobias Koenig

Fixed security issue 'makeFileKey2 Stack Overflow'

svn path=/trunk/kdegraphics/kpdf/; revision=380043
parent 962f891b
......@@ -820,6 +820,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) {
......
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