You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Brett Okken (JIRA)" <ji...@apache.org> on 2016/01/26 15:13:39 UTC

[jira] [Created] (COMPRESS-332) FramedSnappyCompressorInputStream.read returns invalid value at end of stream.

Brett Okken created COMPRESS-332:
------------------------------------

             Summary: FramedSnappyCompressorInputStream.read returns invalid value at end of stream.
                 Key: COMPRESS-332
                 URL: https://issues.apache.org/jira/browse/COMPRESS-332
             Project: Commons Compress
          Issue Type: Bug
          Components: Compressors
    Affects Versions: 1.10
            Reporter: Brett Okken


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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)