commit-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commit-cp] [bugs #10204] DataInputStream.readFully does not check for n


From: Michael Koch
Subject: [commit-cp] [bugs #10204] DataInputStream.readFully does not check for negative length
Date: Fri, 01 Oct 2004 06:02:00 -0400
User-agent: Mozilla/5.0 (compatible; Konqueror/3.2; Linux) (KHTML, like Gecko)

This mail is an automated notification from the bugs tracker
 of the project: classpath.

/**************************************************************************/
[bugs #10204] Latest Modifications:

Changes by: 
                Michael Koch <address@hidden>
'Date: 
                Fre 01.10.2004 at 09:55 (GMT)

            What     | Removed                   | Added
---------------------------------------------------------------------------
          Resolution | None                      | Fixed
              Status | Open                      | Closed


------------------ Additional Follow-up Comments ----------------------------
I just commited a fix to CVS. Thanks for your bug report.






/**************************************************************************/
[bugs #10204] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=10204>
Project: classpath
Submitted by: 0
On: Son 29.08.2004 at 05:45

Category:  inetlib
Severity:  5 - Average
Resolution:  Fixed
Privacy:  Public
Assigned to:  None
Status:  Closed
Platform Version:  None


Summary:  DataInputStream.readFully does not check for negative length

Original Submission:  When this class is run in java (Im using 1.5) I get an 
IndexOutOfBoundsException, but under classpath its a noop.

public class Test
{
   public static void main(String[] args) throws java.io.IOException
   {
      java.io.DataInputStream din = new java.io.DataInputStream(new 
java.io.ByteArrayInputStream(new byte[0]));
      din.readFully(new byte[0],0,-1);
   }
}

Follow-up Comments
------------------


-------------------------------------------------------
Date: Fre 01.10.2004 at 09:55       By: Michael Koch <mkoch>
I just commited a fix to CVS. Thanks for your bug report.












For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=10204>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/







reply via email to

[Prev in Thread] Current Thread [Next in Thread]