changeset 1924:b0e6879e48fa

6839891: Array overrun in vm ci Summary: fix index check Reviewed-by: never
author kvn
date Tue, 09 Nov 2010 17:31:18 -0800
parents 2db84614f61d
children 84d114b9170e 0ac62b4d6507
files src/share/vm/ci/ciInstanceKlass.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/ci/ciInstanceKlass.cpp	Tue Nov 09 15:12:15 2010 -0800
+++ b/src/share/vm/ci/ciInstanceKlass.cpp	Tue Nov 09 17:31:18 2010 -0800
@@ -564,7 +564,7 @@
 // This is OK, since any dependencies we decide to assert
 // will be checked later under the Compile_lock.
 ciInstanceKlass* ciInstanceKlass::implementor(int n) {
-  if (n > implementors_limit) {
+  if (n >= implementors_limit) {
     return NULL;
   }
   ciInstanceKlass* impl = _implementors[n];