ICEpdf
  1. ICEpdf
  2. PDF-744

Empty stack exception when parsing garbage at end of content stream

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.6
    • Fix Version/s: 5.0.6_P01, 5.0.7
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      any

      Description

      While working though the new qa test suite I came up against a file that had some content at the end of the content stream that was essentially extra characters and not actual post script. As a result the content parser tried to parse and failed.

      Some light code protection needs to be added to avoid a empty stack exception.

        Activity

        Patrick Corless made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Patrick Corless made changes -
        Fix Version/s 5.0.7 [ 11470 ]
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Patrick Corless added a comment -

        Fixed passed QA, closing.

        Show
        Patrick Corless added a comment - Fixed passed QA, closing.
        Patrick Corless made changes -
        Fix Version/s 5.0.6_P01 [ 11471 ]
        Fix Version/s 5.0.7 [ 11470 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #40859 Tue Apr 22 12:11:02 MDT 2014 patrick.corless PDF-744 added empty stack protection when parsing malformed 'c' tokens.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/util/content/AbstractContentParser.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #40858 Tue Apr 22 12:06:40 MDT 2014 patrick.corless PDF-744 fixed content parser issue when line width is specified with out a corresponding number value.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/util/content/AbstractContentParser.java
        Patrick Corless made changes -
        Field Original Value New Value
        Fix Version/s 5.0.7 [ 11470 ]
        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: