[ 
https://issues.apache.org/jira/browse/COMPRESS-332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stefan Bodewig resolved COMPRESS-332.
-------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.11

Yes, well spotted, thanks!

Your test passes with git commit 30f1ac1.

> 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
>             Fix For: 1.11
>
>         Attachments: CommonsTest.java
>
>
> 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)

Reply via email to