Commit e37b7915 authored by Vladimir Marko's avatar Vladimir Marko
Browse files

Fix ImageSpace relocation direction check.

The correct check whether `begin+diff` would overflow
uint32_t is `begin >= -diff` in unsigned arithmetic.

Note that with the current ranges of relocation diff and
ART_BASE_ADDRESS, the result of the check is the same as
before.

Test: m test-art-host-gtest
Bug: 77856493
Change-Id: Ic0ded458ad8fa327ea74e2e0ebdd4de18c4e5b04
parent 94b6c34a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment