------- Forwarded message follows ------- From: Felix Harris <felixat_private> To: KF <dotslashat_private> Subject: Re: Java and buffer overflows Send reply to: felixat_private Date sent: Tue, 25 Jun 2002 21:21:28 +0100 Date sent: Mon, 24 Jun 2002 23:40:07 -0400 From: KF <dotslashat_private> To: felixat_private Copies to: vuln-devat_private Subject: Re: Java and buffer overflows > [root@qa5 root]# cat test.java > class test > { > public static void main(String args[]) > { > > String[] test = new String[4]; > test[0] = "A"; > test[1] = "A"; > test[2] = "A"; > test[3] = "A"; > test[4] = "A"; > test[5] = "A"; > test[6] = "A"; > } > } > > > [root@rcmqa5 root]# javac test.java > [root@rcmqa5 root]# java test > Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 4 > at test.main(test.java:11) AFAIK(and i dont know much:), that IS the bounds checking: an exception is thrown rather than a buffer being overflowed. ------- End of forwarded message --------- Felix Harris felixat_private I say goodbye and raindrops taste like tears In the pouring rain I stand and die alone
This archive was generated by hypermail 2b30 : Wed Jun 26 2002 - 10:10:26 PDT