[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug inetlib/22776] DataInputStream.readFully does not check for negativ
From: |
gcc-bugzilla at gcc dot gnu dot org |
Subject: |
[Bug inetlib/22776] DataInputStream.readFully does not check for negative length |
Date: |
16 Oct 2005 01:27:08 -0000 |
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);
}
}
------- Comment #1 from from-classpath at savannah dot gnu dot org 2004-10-01
09:55 -------
I just commited a fix to CVS. Thanks for your bug report.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22776
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug inetlib/22776] DataInputStream.readFully does not check for negative length,
gcc-bugzilla at gcc dot gnu dot org <=