Tilman Hausherr created PDFBOX-6115:
---------------------------------------
Summary: IllegalArgumentException: Input buffer too short in
StandardSecurityHandler.computeRC4key()
Key: PDFBOX-6115
URL: https://issues.apache.org/jira/browse/PDFBOX-6115
Project: PDFBox
Issue Type: Bug
Reporter: Tilman Hausherr
Assignee: Tilman Hausherr
java.lang.IllegalArgumentException: Input buffer too short
java.base/java.security.MessageDigest.update(MessageDigest.java:343)
org.apache.pdfbox.pdmodel.encryption.StandardSecurityHandler.computeRC4key(StandardSecurityHandler.java:966)
org.apache.pdfbox.pdmodel.encryption.StandardSecurityHandler.getUserPassword234(StandardSecurityHandler.java:682)
org.apache.pdfbox.pdmodel.encryption.StandardSecurityHandler.isOwnerPassword234(StandardSecurityHandler.java:619)
org.apache.pdfbox.pdmodel.encryption.StandardSecurityHandler.isOwnerPassword(StandardSecurityHandler.java:604)
org.apache.pdfbox.pdmodel.encryption.StandardSecurityHandler.prepareForDecryption(StandardSecurityHandler.java:251)
org.apache.pdfbox.pdfparser.COSParser.prepareDecryption(COSParser.java:1793)
This happens with the file from the linked bug report. Let's rethrow this as an
IOException.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]