You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2022/09/28 06:38:00 UTC
[jira] [Created] (PDFBOX-5521) Signing tries to set byteRange of old signature
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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org