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

        Hide
        Patrick Corless added a comment -

        Marking as fixed.

        Show
        Patrick Corless added a comment - Marking as fixed.
        Hide
        Patrick Corless added a comment -

        Marking as closed

        Show
        Patrick Corless added a comment - Marking as closed

          People

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

            Dates

            • Created:
              Updated:
              Resolved: