commit | 120504f52b5feedcb9ad7dedc54d7618a2f2c31b | [log] [tgz] |
---|---|---|
author | Jeff Hao <jeffhao@google.com> | Fri Apr 14 14:33:52 2017 -0700 |
committer | Jeff Hao <jeffhao@google.com> | Sat Apr 15 01:00:08 2017 +0000 |
tree | e03daac7c8b52a76edbf96a3c7d687c227111587 | |
parent | c569d4a08378aa8f832e89f25df0abde47158836 [diff] |
Add check that TypeIndex is valid in StringByTypeIdx. StringByTypeIdx should fail gracefully if given a bad TypeIndex. This adds a check that the TypeIndex is valid before getting its TypeId. This fixes a regression that removed this check when it was refactored in this CL: https://android-review.googlesource.com/#/c/243493/ Bug: 37287051 Test: mm -j31 test-art-host-gtest-dex_file_test Change-Id: Ib68cb8135011f5f30335251583e181b089982754