ICEpdf
  1. ICEpdf
  2. PDF-165

ArrayIndexOutOfBoundsException in CCITFax.addRun

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 5.0
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      -
    • Assignee Priority:
      P3

      Description

      java.lang.ArrayIndexOutOfBoundsException: 17
      at org.icepdf.core.pobjects.filters.CCITTFax.addRun(CCITTFax.java:384)
      at org.icepdf.core.pobjects.filters.CCITTFax.resetRuns(CCITTFax.java:477)
      at org.icepdf.core.pobjects.filters.CCITTFax.Group4Decode(CCITTFax.java:595)
      at org.icepdf.core.pobjects.Stream.ccittfaxDecode(Stream.java:1523)
      at org.icepdf.core.pobjects.Stream.decodeCCITTFaxDecodeOrDCTDecodeOrJBIG2DecodeImage(Stream.java:535)
      at org.icepdf.core.pobjects.Stream.getImage(Stream.java:1741)
      at org.icepdf.core.pobjects.Stream.getImage(Stream.java:1704)
      at org.icepdf.core.util.ContentParser.parseInlineImage(ContentParser.java:1559)
      at org.icepdf.core.util.ContentParser.parse(ContentParser.java:799)
      at org.icepdf.core.pobjects.Page.init(Page.java:369)
      at org.icepdf.core.views.swing.PageViewComponentImpl$PageInitilizer.run(PageViewComponentImpl.java:1088)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:637)

        Activity

        Hide
        Patrick Corless added a comment -

        My guess is that the images aren't actualy ccittfax, given that they have colour in them but I'll have to take a closer looks.

        Show
        Patrick Corless added a comment - My guess is that the images aren't actualy ccittfax, given that they have colour in them but I'll have to take a closer looks.
        Hide
        Patrick Corless added a comment -

        Pushing to future release for investigation and possible fix.

        Show
        Patrick Corless added a comment - Pushing to future release for investigation and possible fix.
        Hide
        Patrick Corless added a comment -

        This issue was actually fixed in version 5.0. The new content parser fixed a few issue in how we parse inline images. As a result the all the little image tiles now render.

        Show
        Patrick Corless added a comment - This issue was actually fixed in version 5.0. The new content parser fixed a few issue in how we parse inline images. As a result the all the little image tiles now render.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: