diff options
author | Jeff Hao <jeffhao@google.com> | 2017-03-02 16:36:31 -0800 |
---|---|---|
committer | Jeff Hao <jeffhao@google.com> | 2017-03-02 19:51:11 -0800 |
commit | 41b2f537aca2c9779e39651fb222a1132a7eff56 (patch) | |
tree | 8a916e481bf5a66dd0b14d84509d5d97c3de6f2b /test/ProfileTestMultiDex/Second.java | |
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
Diffstat (limited to 'test/ProfileTestMultiDex/Second.java')
0 files changed, 0 insertions, 0 deletions