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

FramedSnappyCompressorInputStream.read returns invalid value at end of stream.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.10
    • Fix Version/s: 1.11
    • Component/s: Compressors
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: