You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2025/12/04 10:38:00 UTC

[jira] [Commented] (PDFBOX-6115) IllegalArgumentException: Input buffer too short in StandardSecurityHandler.computeRC4key()

    [ https://issues.apache.org/jira/browse/PDFBOX-6115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18042743#comment-18042743 ] 

ASF subversion and git services commented on PDFBOX-6115:
---------------------------------------------------------

Commit 1930247 from Tilman Hausherr in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1930247 ]

PDFBOX-6115: rethrow IllegalArgumentException as IOException

> 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
>          Components: Crypto
>    Affects Versions: 2.0.35, 3.0.6 PDFBox
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>            Priority: Minor
>             Fix For: 2.0.36, 3.0.7 PDFBox, 4.0.0
>
>
> 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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org