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

Henri Yandell updated IO-273:
-----------------------------

    Fix Version/s: 2.2
    
> BoundedInputStream.read() treats max differently from 
> BoundedInputStream.read(byte[]...)
> ----------------------------------------------------------------------------------------
>
>                 Key: IO-273
>                 URL: https://issues.apache.org/jira/browse/IO-273
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Streams/Writers
>            Reporter: Sebb
>            Priority: Minor
>             Fix For: 2.2
>
>
> BoundedInputStream.read() treats max differently from 
> BoundedInputStream.read(byte[]...)
> read() checks for pos == max, whereas read(byte[]...) checks for pos >= max.
> The latter check is safer (works even if pos overshoots max).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to