Commit 980027c7 authored by Pavel Vyssotski's avatar Pavel Vyssotski Committed by David Brazdil
Browse files

ART: Treat throw with non-reference type as hard failure in verifier.



The code
   const v0, 0xbad
   throw v0
crashes dex2oatd/Quick by DCHECK in art::Mir2Lir::LoadValueDirect.
dex2oat works fine producing VerifyError later in runtime.
Optimizing also pass as it rejects methods with soft failures.

Fix this by rejecting such methods in Verifier.

Bug: 27148248
Change-Id: Ib783f60a210362654d40e84172e7bd579913a4d4
Signed-off-by: default avatarPavel Vyssotski <pavel.n.vyssotski@intel.com>
parent 5960a3f4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment