6839891: Array overrun in vm ci

Tue, 09 Nov 2010 17:31:18 -0800

author
kvn
date
Tue, 09 Nov 2010 17:31:18 -0800
changeset 2279
b0e6879e48fa
parent 2278
2db84614f61d
child 2280
84d114b9170e
child 2305
0ac62b4d6507

6839891: Array overrun in vm ci
Summary: fix index check
Reviewed-by: never

src/share/vm/ci/ciInstanceKlass.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/vm/ci/ciInstanceKlass.cpp	Tue Nov 09 15:12:15 2010 -0800
     1.2 +++ b/src/share/vm/ci/ciInstanceKlass.cpp	Tue Nov 09 17:31:18 2010 -0800
     1.3 @@ -564,7 +564,7 @@
     1.4  // This is OK, since any dependencies we decide to assert
     1.5  // will be checked later under the Compile_lock.
     1.6  ciInstanceKlass* ciInstanceKlass::implementor(int n) {
     1.7 -  if (n > implementors_limit) {
     1.8 +  if (n >= implementors_limit) {
     1.9      return NULL;
    1.10    }
    1.11    ciInstanceKlass* impl = _implementors[n];

mercurial