ICEpdf
  1. ICEpdf
  2. PDF-1062

Encryption dictionary error decoding hex strings

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.1.3
    • Fix Version/s: 6.2
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      any

      Description

      A community member has reported an encryption issue related to PDF-868. The posted file is another example of hex strings that start off with FEFF which would normally be a flag indicating a 4 byte encoding. I should have given the hole class an audit for PDF-868 but unfortunately didn't.

      Once the class is updated to use the raw value of the hex string the document decrypts correctly.

        Activity

        Hide
        Patrick Corless added a comment -

        Updated the EncryptionDictionary class to handle ObjectString values as raw byte values. These addresses the encoding issue which was preventing the calculation of a correct encryption key.

        Show
        Patrick Corless added a comment - Updated the EncryptionDictionary class to handle ObjectString values as raw byte values. These addresses the encoding issue which was preventing the calculation of a correct encryption key.
        Hide
        Patrick Corless added a comment -

        Fixes checked in on the Branch and Trunk.

        Show
        Patrick Corless added a comment - Fixes checked in on the Branch and Trunk.

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Patrick Corless
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: