aboutsummaryrefslogtreecommitdiff
path: root/vm/compiler/codegen/arm/CodegenDriver.c
diff options
context:
space:
mode:
authorAndy McFadden <fadden@android.com>2010-07-27 16:04:43 -0700
committerAndy McFadden <fadden@android.com>2010-07-27 16:04:43 -0700
commit31231c7ebc3b9c495b6eefaf15bc86511432ad90 (patch)
treea2c3e53ffe4f63f2a4ab1b55b7367b61c74f7a66 /vm/compiler/codegen/arm/CodegenDriver.c
parentf3cfbbf80364d4d15b722afb48637dffba73fb3c (diff)
Verify jmethodID when calling methods.
The JNI Call<type>Method, CallNonvirtual<type>Method, and CallStatic<type>Method functions take an object (or class) and a jmethodID as arguments. For virtual calls, if the jmethodID is not for a method in the provided object, the VM can crash. (The most common way to accomplish this is to pass a class object into a virtual method call.) For static method calls, the method defines the class, and we ignore the jclass argument. Still, we don't want badly-formed code floating around, so we just log a warning. This is part of CheckJNI. Bug 2577881. Change-Id: Ia19f0cb604b06a6bd4da8e3d6238d4e162b1480e
Diffstat (limited to 'vm/compiler/codegen/arm/CodegenDriver.c')
0 files changed, 0 insertions, 0 deletions