Tilman Hausherr created PDFBOX-5521:
---------------------------------------

             Summary: Signing tries to set byteRange of old signature
                 Key: PDFBOX-5521
                 URL: https://issues.apache.org/jira/browse/PDFBOX-5521
             Project: PDFBox
          Issue Type: Bug
          Components: Signing
    Affects Versions: 2.0.27
            Reporter: Tilman Hausherr
            Assignee: Tilman Hausherr
             Fix For: 2.0.28, 3.0.0 PDFBox


A long bug report on the users mailing lists leads to the finding that the 
COSWriter code hits an "old" signature that is (for whatever reason, maybe it 
was incorrectly included) present in the incremental part. The signing then 
fails because the byte range to be written is longer than the existing byte 
range.

To avoid this, we improve signature detection by checking that the size 
indicated by byteRange is higher than the existing PDF size.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to