OSDN Git Service

ART: Check for expected args for instance methods
authorAndreas Gampe <agampe@google.com>
Sat, 20 Jun 2015 03:37:46 +0000 (20:37 -0700)
committerAndreas Gampe <agampe@google.com>
Sat, 20 Jun 2015 04:03:51 +0000 (21:03 -0700)
commit673b4302edf6d1604e69a1427eea5324016bbab2
treee91e041e10448db803d294e528e34fddc559b5fd
parentcbf5d89665cfb48778b2946794fbea43067ff04a
ART: Check for expected args for instance methods

Don't assume that the receiver is expected. This was writing out
of bounds (or triggering a DCHECK).

Bug: 21817284
Bug: 21872240
Bug: https://code.google.com/p/android/issues/detail?id=176571
Bug: https://code.google.com/p/android/issues/detail?id=176572

(cherry picked from commit ef0b1a1dbc99fe7c92f9598cbfc164763c1b66d7)

Change-Id: I7cad2c1dfc39feb0b1b4660deeb43afdcb844ba3
runtime/verifier/method_verifier.cc