diff options
| author | 2022-03-17 11:13:05 -0700 | |
|---|---|---|
| committer | 2022-03-18 16:28:15 +0000 | |
| commit | 4a5b43f7406c5704f529dc19bf9c7c8a9ed3c6b2 (patch) | |
| tree | 69fc43116a408eedb6354e44ab133d62f656bc49 /compiler/optimizing/code_sinking.cc | |
| 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
Diffstat (limited to 'compiler/optimizing/code_sinking.cc')
0 files changed, 0 insertions, 0 deletions