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

Andreas Lehmkühler commented on PDFBOX-2801:
--------------------------------------------

Sorry, but that's not the same. The origin report adresses not encrypted fields 
in an encrypted pdf. Your sample on the contrary is a manually corrupted pdf.
Maybe my former comment wasn't that clear. We should check if your file is 
malformed or not. Is the mentioned "TU" entry the one and only field which 
isn't encrypted? Does the encryption dictionary contain any "StmF" or "StrF" 
entries? 

> SecurityHandler does not tolerate plain-text COSString
> ------------------------------------------------------
>
>                 Key: PDFBOX-2801
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2801
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 2.0.0
>            Reporter: Michele Balistreri
>         Attachments: AES_fullencryption_corrupted.pdf, 
> SecurityHandler-tolerant-decrypt.diff
>
>
> SecurityHandler does not handle the possibility, that a COSString is already 
> plain text if the document is encrypted. This patch makes it tolerant when 
> decrypting COSString, so that if it fails it just logs that and keeps the 
> original content. The code works with all files I have.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to