Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A8B149834 for ; Wed, 14 Mar 2012 02:11:02 +0000 (UTC) Received: (qmail 18790 invoked by uid 500); 14 Mar 2012 02:11:02 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 18712 invoked by uid 500); 14 Mar 2012 02:11:02 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 18696 invoked by uid 99); 14 Mar 2012 02:11:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2012 02:11:02 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2012 02:10:58 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 8EC031D1A0 for ; Wed, 14 Mar 2012 02:10:38 +0000 (UTC) Date: Wed, 14 Mar 2012 02:10:38 +0000 (UTC) From: "Sebb (Resolved) (JIRA)" To: issues@commons.apache.org Message-ID: <853138484.10545.1331691038586.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <481660278.8555.1331660438983.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (IO-307) ReaderInputStream#read(byte[] b, int off, int len) should check for valid parameters MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on 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