Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-5521

Signing tries to set byteRange of old signature

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.27
    • 2.0.28, 3.0.0 PDFBox
    • Signing
    • None

    Description

      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.

      Attachments

        Activity

          People

            tilman Tilman Hausherr
            tilman Tilman Hausherr
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: