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

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #49539 Thu Nov 10 11:21:54 MST 2016 patrick.corless PDF-1062 fixed a hex string parsing issue in the EncryptionDictionary which was providing StandardEncryption with incorrect values causing an invalid key to be created.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-6.1.0/icepdf/core/src/org/icepdf/core/pobjects/security/StandardEncryption.java
        Commit graph MODIFY /icepdf/branches/icepdf-6.1.0/icepdf/core/src/org/icepdf/core/pobjects/security/EncryptionDictionary.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #49538 Thu Nov 10 11:21:39 MST 2016 patrick.corless PDF-1062 fixed a hex string parsing issue in the EncryptionDictionary which was providing StandardEncryption with incorrect values causing an invalid key to be created.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/security/StandardEncryption.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/security/EncryptionDictionary.java

          People

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

            Dates

            • Created:
              Updated:
              Resolved: