OSDN Git Service

Made CheckJNI check varargs when possible
authorAlex Light <allight@google.com>
Wed, 19 Aug 2015 22:23:23 +0000 (15:23 -0700)
committerAlex Light <allight@google.com>
Thu, 20 Aug 2015 17:24:33 +0000 (17:24 +0000)
commit48ffe0653c51c0785c8bd260fef486922ba00e4e
treef8e7e171c9ee91fabc8c491147668f8c097e15e4
parentedd0a6dbe26bb334f02d5abe649e3da9165277b2
Made CheckJNI check varargs when possible

Several JNI functions such as NewObject and Call*Method take a variable
number of arguments. This patch will make CheckJNI do (limited) dynamic
validation of these arguments. Currently it is limited to checking that
objects are valid and that no value types have illegal values.

Bug: 20344596
Change-Id: I1f81d2bdd80215e0007fc636bac27d5bcc2dba96
runtime/check_jni.cc