Add check to CheckImageIdenticalToOriginalExceptForRelocation

Add defensive check which fails gracefully if the
relocation offset is larger than the image size.

Add tests.

Bug: 109677607
Test: test-art-host-gtest-patchoat_test SANITIZE_HOST=address
Change-Id: Ic989d5b7c77fd66e77b9e8ba90df1bf490a46e43
2 files changed