Mercurial > hg > truffle
diff src/share/vm/ci/ciInstanceKlass.cpp @ 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 | d55217dc206f |
children | 2d26b0046e0d f95d63e2154a |
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];