Commit db7239cc authored by avignate's avatar avignate Committed by buzbee
Browse files

ART: Overflow of bound check in ArrayCopy intrinsic



System.arraycopy method is implemented as intrinsic on x86. It has
bound check which has a bug to overflow in certain conditions
when summ of array offset and number elements to be copied are
more than MAX_INT. For the methods like CarArrayBuffer.get it
means no OutOfBound exception to be thrown. The proposed
solution fixed that.

b/17711775

Signed-off-by: default avataravignate <aleksey.v.ignatenko@intel.com>

(cherry picked from commit f9f0ed40)

Change-Id: I1d4ca900df262d483a94ebea8fa686ea361772c8
parent 6d031046
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment