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: anonymous
Subject: [commit-cp] [bugs #10204] DataInputStream.readFully does not check for negative length
Date: Sun, 29 Aug 2004 01:50:42 -0400
User-agent: MSIE 7.66 (UNIX)

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




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

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=10204>
Project: classpath
Submitted by: 0
On: Sun 08/29/2004 at 01:45

Category:  inetlib
Severity:  5 - Average
Resolution:  None
Privacy:  Public
Assigned to:  None
Status:  Open
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);
   }
}











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]