ICEpdf
  1. ICEpdf
  2. PDF-567

Exception decoding FlateDecode stream

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 6.3
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      any

      Description

      The file in question is contains content stream encoded using the FlateDecode filter. ICEpdf currently relies on the java.util.ZipInflaterInputStream to handle the decompression. Unfortunately the ZipInflaterInputStream is chocking on this stream.

      After quite a bit of tracing it became apparent that is was the last ZipInflaterInputStream.read call that was reporting the error. The only way that I could get all the needed content tokens was to set the buffer to 1 byte as a work around. The problem with he 1 byte buffer is that it isn't performant.

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #52213 Tue Jan 16 13:01:53 MST 2018 patrick.corless PDF-567 hopefully a final fix for zip compression corner case we have
        been seeing when a stream does not contain the correct end of steam bytes.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/core-awt/src/main/java/org/icepdf/core/pobjects/filters/FlateDecode.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #52153 Wed Dec 13 10:53:36 MST 2017 patrick.corless PDF-567 patched a rare flate decode issue that was assigning an incorrect
        buffer size for decoding small sized streams.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-6.2.0/icepdf/core/src/org/icepdf/core/pobjects/filters/FlateDecode.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #52121 Tue Dec 05 09:29:21 MST 2017 patrick.corless PDF-567 patched a rare flate decode issue that was assigning an incorrect
        buffer size for decoding small sized streams.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/core-awt/src/main/java/org/icepdf/core/pobjects/filters/FlateDecode.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #34438 Thu Apr 18 10:19:59 MDT 2013 patrick.corless PDF-567 added configurable buffer size.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/filters/ChunkingInputStream.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/filters/FlateDecode.java

          People

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

            Dates

            • Created:
              Updated:
              Resolved: