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

SecurityHandler does not tolerate plain-text COSString

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 1.8.10, 2.0.0
    • PDModel
    • None
    • Patch

    Description

      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.

      Attachments

        1. AES_fullencryption_corrupted.pdf
          75 kB
          Michele Balistreri
        2. SecurityHandler-tolerant-decrypt.diff
          2 kB
          Michele Balistreri
        3. wrong TU object.png
          15 kB
          Michele Balistreri

        Activity

          People

            lehmi Andreas Lehmkühler
            briksoftware Michele Balistreri
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: