From 7e5fc844f8c23dd476d2cb215324a9ef77dda8e2 Mon Sep 17 00:00:00 2001 From: kvn Date: Tue, 9 Nov 2010 17:31:18 -0800 Subject: [PATCH] 6839891: Array overrun in vm ci Summary: fix index check Reviewed-by: never --- src/share/vm/ci/ciInstanceKlass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/share/vm/ci/ciInstanceKlass.cpp b/src/share/vm/ci/ciInstanceKlass.cpp index 8ad5bf91d..e5f848bff 100644 --- a/src/share/vm/ci/ciInstanceKlass.cpp +++ b/src/share/vm/ci/ciInstanceKlass.cpp @@ -564,7 +564,7 @@ bool ciInstanceKlass::is_leaf_type() { // 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]; -- GitLab