You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2011/05/12 00:03:47 UTC
[jira] [Created] (IO-273) BoundedInputStream.read() treats max
differently from BoundedInputStream.read(byte[]...)
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
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.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (IO-273) BoundedInputStream.read() treats max
differently from BoundedInputStream.read(byte[]...)
Posted by "Henri Yandell (Updated) (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Closed] (IO-273) BoundedInputStream.read() treats max
differently from BoundedInputStream.read(byte[]...)
Posted by "Gary D. Gregory (Closed) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IO-273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary D. Gregory closed IO-273.
------------------------------
Version 2.2 has been released and addresses this issue.
> 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
[jira] [Resolved] (IO-273) BoundedInputStream.read() treats max
differently from BoundedInputStream.read(byte[]...)
Posted by "Sebb (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IO-273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sebb resolved IO-273.
---------------------
Resolution: Fixed
> 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