commit | 41b2f537aca2c9779e39651fb222a1132a7eff56 | [log] [tgz] |
---|---|---|
author | Jeff Hao <jeffhao@google.com> | Thu Mar 02 16:36:31 2017 -0800 |
committer | Jeff Hao <jeffhao@google.com> | Thu Mar 02 19:51:11 2017 -0800 |
tree | 8a916e481bf5a66dd0b14d84509d5d97c3de6f2b | |
parent | f040eca7329382d48dc2b8bfc228ee3f27c9f13d [diff] |
Add nullptr and size check for opening a mem mapped dex file. The bug has an apk with 0 size classes.dex. When dex2oat tries to open the file for layout, it crashes. This adds checks to ensure that the mem map isn't null and has a sane size before opening it as a dex file. Bug: 35892406 Test: mm test-art-host Change-Id: I5f6b5a1e7bbccf4fe3483b68023d51436eb71805