diff options
author | 2021-03-17 15:01:42 +0000 | |
---|---|---|
committer | 2021-03-18 16:43:46 +0000 | |
commit | ef8c3376a812e943d4e7c4ef96f17e218d11bc7c (patch) | |
tree | 18b28f41b7764a7f14bbc57b69b7d6b37c8c03b4 /runtime/elf_file_impl.h | |
parent | 35363cf978d4d0b452cb8849041ff7dd6a6718bc (diff) |
Do not crash on out-of-date oat files.
Check that the OatHeader is valid before searching
the key-value store for "debuggable".
Test: New test in dex2oat_test.cc .
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Bug: 179221298
Change-Id: Ib10c919883b31b71810cc876fb38105b48a58bcb
Diffstat (limited to 'runtime/elf_file_impl.h')
-rw-r--r-- | runtime/elf_file_impl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/elf_file_impl.h b/runtime/elf_file_impl.h index ba02d622c5..8fd8044177 100644 --- a/runtime/elf_file_impl.h +++ b/runtime/elf_file_impl.h @@ -59,6 +59,10 @@ class ElfFileImpl { return file_path_; } + uint8_t* GetBaseAddress() const { + return base_address_; + } + uint8_t* Begin() const { return map_.Begin(); } |