Bug 695101 - MuPDF does not accept owner password
Summary: MuPDF does not accept owner password
Status: RESOLVED FIXED
Alias: None
Product: MuPDF
Classification: Unclassified
Component: mupdf (show other bugs)
Version: master
Hardware: Other All
: P4 normal
Assignee: MuPDF bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-19 11:00 UTC by Nic Clarkson
Modified: 2014-05-15 07:01 UTC (History)
1 user (show)

See Also:
Customer:
Word Size: ---


Attachments
Locked PDF (48.59 KB, application/pdf)
2014-03-19 11:00 UTC, Nic Clarkson
Details
tiger_user_owner.pdf (38.29 KB, application/force-download)
2014-05-12 08:01 UTC, Tor Andersson
Details
same file with user password (46.02 KB, application/pdf)
2014-05-12 08:02 UTC, Ken Sharp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nic Clarkson 2014-03-19 11:00:54 UTC
Created attachment 10758 [details]
Locked PDF

PDF has owner password to make changes to PDF and MuPDF does not accept the correct owner password to unlock and grant permissions. Attached PDF exhibits the problem. It does not have a user password and the owner password is test
Comment 1 Tor Andersson 2014-05-12 08:01:34 UTC
Created attachment 10891 [details]
tiger_user_owner.pdf

Attached another test file tiger_user_owner.pdf that has separate non-blank user and owner passwords: 'user' and 'owner'.
Comment 2 Ken Sharp 2014-05-12 08:02:02 UTC
Created attachment 10892 [details]
same file with user password

added user password 'sesame'
Comment 3 Tor Andersson 2014-05-15 07:01:16 UTC
Fixed in commit 5509a4ef7520bf0b5280ce7d6af8eb15b1b8b0f1
Author: Tor Andersson <tor.andersson@artifex.com>
Date:   Thu May 15 12:13:19 2014 +0200

    Fix 695101 and 694114: Use the correct numbers to validate the encryption key length.
    
    This reverts commit b1ed116091b790223a976eca2381da2875341e10.
    
    The key length for V==2 must be 40 <= length <= 128.
    The key length for V==4 is not taken from the /Length entry.