ICEpdf
  1. ICEpdf
  2. PDF-889

Extra data in image stream can cause issue when applying indexed color model

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.2
    • Fix Version/s: 6.0
    • Component/s: Imaging
    • Labels:
      None
    • Environment:
      any

      Description

      The PDF in question has an inline image on page 70 that loads a a black image. The issue is because of a data length issue between the index colour model data and the data length of the actual image stream. As far as I can tell this issue was introduced in PDF-866 when fixing up some stuff with inline image parsing. A side effect of this work is that the data stream can be a little long.

      I've update the code to use the length of the needed data and not the data length of the stream. Image appears correctly.

        Activity

        Patrick Corless made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Judy Guglielmin made changes -
        Support Case References Support Case 13453:- https://icesoft.my.salesforce.com/5007000001Er0iZ?srPos=0&srKp=500
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Patrick Corless made changes -
        Field Original Value New Value
        Fix Version/s 5.2 [ 10970 ]
        Patrick Corless created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved: