ICEpdf
  1. ICEpdf
  2. PDF-1295

document with bad xref offsets doesn't load

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.3.1
    • Fix Version/s: 6.3.2
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      any

      Description

      A community member has submitted a PDF that doesn't load at all, it just shows up as a black dot in the RI.

        Activity

        Patrick Corless created issue -
        Hide
        Patrick Corless added a comment -

        The PDF the an xref offset error that is just bad enough to allow the catalog to be found by our parser and the root page tree. However any deeper into the xref table and parser starts kicking back primitives instead of the requested object.

        To address this I've added some validation checks that are pretty low cost where the root page tree children are referenced and parsed by the object parser. If any of the object come back as none pages we switch over to linear traversal.

        This sort of problem will be solved by a new object parser I've been working on for quite some time now.

        Show
        Patrick Corless added a comment - The PDF the an xref offset error that is just bad enough to allow the catalog to be found by our parser and the root page tree. However any deeper into the xref table and parser starts kicking back primitives instead of the requested object. To address this I've added some validation checks that are pretty low cost where the root page tree children are referenced and parsed by the object parser. If any of the object come back as none pages we switch over to linear traversal. This sort of problem will be solved by a new object parser I've been working on for quite some time now.
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #52867 Tue Jan 08 21:13:24 MST 2019 patrick.corless PDF-1295 added a quick xref validity check to try and detect corrupt
        pdf files and allow document loader to fall back on a linear traversal.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/core-awt/src/main/java/org/icepdf/core/pobjects/Document.java
        Patrick Corless made changes -
        Field Original Value New Value
        Fix Version/s 6.3.2 [ 13175 ]
        Hide
        Patrick Corless added a comment -

        Marking as fixed.

        Show
        Patrick Corless added a comment - Marking as fixed.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #52869 Wed Jan 09 20:59:03 MST 2019 patrick.corless PDF-1295 added a quick xref validity check to try and detect corrupt pdf added PageTree and Reference to the check
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/core-awt/src/main/java/org/icepdf/core/pobjects/Document.java
        Judy Guglielmin made changes -
        Support Case References Support Case 14419:- https://icesoft.my.salesforce.com/5000g000020hTwD?srPos=0&srKp=500

          People

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

            Dates

            • Created:
              Updated:
              Resolved: