Uploaded image for project: 'Commons Compress'
  1. Commons Compress
  2. COMPRESS-378

SnappyCompressorInputStream slides the window too early

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.13
    • Fix Version/s: 1.14
    • Component/s: None
    • Labels:
      None

      Description

      The sliding window is moved once "blocksize" data have been processed, which is too early if the back-reference offset is close to blocksize.

      Also, the bytes read when the expand-methods signal a flush is required have never been accounted for, leading to "Premature end of stream" errors.

      These have been fixed with git commits 9ae3752, d9421dc und e4658a.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bodewig Stefan Bodewig
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: