OSDN Git Service

ART: Fix unchecked register index validity
authorAndreas Gampe <agampe@google.com>
Sun, 7 Sep 2014 20:06:12 +0000 (13:06 -0700)
committerAndreas Gampe <agampe@google.com>
Mon, 8 Sep 2014 19:12:59 +0000 (12:12 -0700)
commit74ae47a0590feceea31a2388f98c83e3ec0df0ec
tree9ed11a4b2a6c807a032c9090e2e42347ce77e887
parentb100ff4f21e034172be9669b18851829bb51e567
ART: Fix unchecked register index validity

The static check of index validity is against the type given by
the instruction, e.g., boolean for SPUT_BOOLEAN, but the target_type
is the resolved field type and can differ. An additional check is
necessary to avoid a read out of bounds.

Bug: 17411109
Change-Id: Ie4ed8bbda79f3f6403a24e727450a943447aa71d
runtime/verifier/method_verifier.cc