Details

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

      Description

      A user has pointed out a regression in the jbig2 support. I've looked into this issue an little closer and the claim is valid. An error check was added for empty JBIG2Global values in the Stream class which is causing the regression. The Hashtable processing block in the jbig2Decode method should instead read:

               Hashtable decodeparms = library.getDictionary(entries, "DecodeParms");
                  if (decodeparms != null) {
                      Stream globalsStream = (Stream) library.getObject(decodeparms, "JBIG2Globals");
                      if (globalsStream != null){
                          byte[] globals = globalsStream.getDecodedStreamBytes();
                          if (globals != null && globals.length > 0) {
                              decoder.setGlobalData(globals);
                              globals = null;
                          }
                      }
                  }

        Activity

        Patrick Corless created issue -
        Patrick Corless made changes -
        Field Original Value New Value
        Salesforce Case []
        Fix Version/s 4.2 [ 10243 ]
        Patrick Corless made changes -
        Salesforce Case []
        Fix Version/s 4.1.3 [ 10257 ]
        Fix Version/s 4.2 [ 10243 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #23756 Mon Jan 10 08:56:39 MST 2011 patrick.corless PDF-240 fixed regression in decoding jbig2 global stream parameters which kept some jbig2 images from being properly rendered.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/Stream.java
        Hide
        Patrick Corless added a comment -

        Checked in patch to fix jbig 2 decoding error when no decode parameters are encountered.

        Show
        Patrick Corless added a comment - Checked in patch to fix jbig 2 decoding error when no decode parameters are encountered.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: