commit | e37b7915908dba10e90c39a3a82cb0cd1dc05f5c | [log] [tgz] |
---|---|---|
author | Vladimir Marko <vmarko@google.com> | Wed Mar 13 10:52:39 2019 +0000 |
committer | Vladimir Marko <vmarko@google.com> | Fri Mar 15 10:59:26 2019 +0000 |
tree | 178e7fed04a9e93cb23cca83c276d6ea19e6caa4 | |
parent | 94b6c34aade019d6300c4b109885b3b6715d573e [diff] |
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