commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (IO-273) BoundedInputStream.read() treats max differently from BoundedInputStream.read(byte[]...)
Date Thu, 10 Nov 2011 18:38:51 GMT

     [ 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

        

Mime
View raw message