OSDN Git Service

Throw ArrayStoreException instead of corrupting the heap.
authorElliott Hughes <enh@google.com>
Thu, 5 Apr 2012 23:27:26 +0000 (16:27 -0700)
committerElliott Hughes <enh@google.com>
Thu, 5 Apr 2012 23:27:26 +0000 (16:27 -0700)
commit66a6e44bafabc957eb4eaaddbbb21e5f130c8aad
treeac6da6e699a3f26a4e306dc2970b67f60b1832a3
parentc628d17bad121d3c302f16de9ab47cec274a7403
Throw ArrayStoreException instead of corrupting the heap.

Protect against bad calls to SetObjectArrayElement. Found while debugging
a Chrome crash. (This will make Chrome fail at the point where it does the
invalid operation rather than later, but we already merged the fix upstream.)

Change-Id: Ie7b2238d99f2ee4dde46342eb77cfec0495a30e7
vm/Jni.cpp