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

FramedSnappyCompressorInputStream.read returns invalid value at end of stream.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.10
    • 1.11
    • Compressors
    • None

    Description

      FramedSnappyCompressorInputStream.read() returns 0 when the end of stream has been reached rather than -1.

      It appears that this may be caused by SnappyCompressorInputStream.read(byte[], int, int) returning 0 instead of -1 at the end of stream when the exact number of bytes have been read.

      Attachments

        1. CommonsTest.java
          3 kB
          Brett Okken

        Activity

          People

            Unassigned Unassigned
            kantiger Brett Okken
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: