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 (Created) (JIRA)" <ji...@apache.org> on 2012/03/13 18:40:38 UTC
[jira] [Created] (IO-307) ReaderInputStream#read(byte[] b, int off,
int len) should check for valid parameters
ReaderInputStream#read(byte[] b, int off, int len) should check for valid parameters
------------------------------------------------------------------------------------
Key: IO-307
URL: https://issues.apache.org/jira/browse/IO-307
Project: Commons IO
Issue Type: Bug
Reporter: Sebb
If the buffer is null, the method should throw NPE immediately (rather than letting it occur later)
If the offset or length are < 0 or would overflow the buffer, then throw IndexOutOfBoundsException with details of the values.
--
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-307) ReaderInputStream#read(byte[] b, int
off, int len) should check for valid parameters
Posted by "Sebb (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IO-307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sebb resolved IO-307.
---------------------
Resolution: Fixed
Fix Version/s: 2.2
> ReaderInputStream#read(byte[] b, int off, int len) should check for valid parameters
> ------------------------------------------------------------------------------------
>
> Key: IO-307
> URL: https://issues.apache.org/jira/browse/IO-307
> Project: Commons IO
> Issue Type: Bug
> Affects Versions: 2.1
> Reporter: Sebb
> Fix For: 2.2
>
>
> If the buffer is null, the method should throw NPE immediately (rather than letting it occur later)
> If the offset or length are < 0 or would overflow the buffer, then throw IndexOutOfBoundsException with details of the values.
--
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] [Updated] (IO-307) ReaderInputStream#read(byte[] b, int off,
int len) should check for valid parameters
Posted by "Sebb (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IO-307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sebb updated IO-307:
--------------------
Affects Version/s: 2.1
> ReaderInputStream#read(byte[] b, int off, int len) should check for valid parameters
> ------------------------------------------------------------------------------------
>
> Key: IO-307
> URL: https://issues.apache.org/jira/browse/IO-307
> Project: Commons IO
> Issue Type: Bug
> Affects Versions: 2.1
> Reporter: Sebb
>
> If the buffer is null, the method should throw NPE immediately (rather than letting it occur later)
> If the offset or length are < 0 or would overflow the buffer, then throw IndexOutOfBoundsException with details of the values.
--
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-307) ReaderInputStream#read(byte[] b, int off,
int len) should check for valid parameters
Posted by "Gary D. Gregory (Closed) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IO-307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary D. Gregory closed IO-307.
------------------------------
Version 2.2 has been released and addresses this issue.
> ReaderInputStream#read(byte[] b, int off, int len) should check for valid parameters
> ------------------------------------------------------------------------------------
>
> Key: IO-307
> URL: https://issues.apache.org/jira/browse/IO-307
> Project: Commons IO
> Issue Type: Bug
> Affects Versions: 2.1
> Reporter: Sebb
> Fix For: 2.2
>
>
> If the buffer is null, the method should throw NPE immediately (rather than letting it occur later)
> If the offset or length are < 0 or would overflow the buffer, then throw IndexOutOfBoundsException with details of the values.
--
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