commit | 4a5b43f7406c5704f529dc19bf9c7c8a9ed3c6b2 | [log] [tgz] |
---|---|---|
author | Pirama Arumuga Nainar <pirama@google.com> | Thu Mar 17 11:13:05 2022 -0700 |
committer | Pirama Arumuga Nainar <pirama@google.com> | Fri Mar 18 16:28:15 2022 +0000 |
tree | 69fc43116a408eedb6354e44ab133d62f656bc49 | |
parent | dbf55436b9a89993d1f5f08e8bec24874bd72a78 [diff] |
Avoid UB in CodeItemDebugInfoAccessor::Init Bug: http://b/219526286 Initialize `dex_file_` even if `code_item` is nullptr. Later in `elf_debug_writer.h:WriteCompilationUnit`, the call to `DecodeDebugPositionInfo` assumes that `dex_file_` is initialized. Test: Revert aosp/1984608 and the following passes: SOONG_ALLOW_MISSING_DEPENDENCIES=true HOST_PREFER_32_BIT=true m -j32 test-art-host-gtest-art_oatdump_tests32 Change-Id: Ie8b9adf25742a6c2448dfbbc201155b7933ef3d3