Commit ee40aa46 authored by nikolay serdjuk's avatar nikolay serdjuk
Browse files

An argument is handled incorrectly for add-int/lit8 during optimization phase



Dalvik instruction 'add-int/lit8' stores a constant in the third parameter.
But during optimization phase the compiler reads the constant from the
second parameter. This is incorrect because it leads to wrong decision that
no array bound checks are needed in our test case. As a consequence it
fails with SIGSEGV because of accessing elements which are beyond the bounds.

Change-Id: I653892514934046d31a9e4d206d9d95ebb6267ab
Signed-off-by: default avatarnikolay serdjuk <nikolay.y.serdjuk@intel.com>
parent 89ff4f99
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment