natString.cc (getChars): Fix validation of array indexes.

* java/lang/natString.cc (getChars):
	Fix validation of array indexes.
	(getBytes, regionMatches, startsWith, valueOf): Likewise.
	* testsuite/libjava.lang/String_overflow.java: New file.
	* testsuite/libjava.lang/String_overflow.out: New file.

From-SVN: r72578
This commit is contained in:
Ralph Loader 2003-10-16 21:28:23 +00:00 committed by Ralph Loader
parent bf1b388d0e
commit 2488a51e82
4 changed files with 165 additions and 10 deletions

View file

@ -0,0 +1 @@
ok