diff options
author | ganxiaolin <ganxiaolin@xiaomi.com> | 2016-07-18 11:21:44 +0800 |
---|---|---|
committer | David Sehr <sehr@google.com> | 2016-08-02 14:46:45 -0700 |
commit | cd16d0aa7e30115323caf040a11b4605f1acfea3 (patch) | |
tree | a9a2495f5a50a1a0a514420fdfceb6ab5c6e47fc /disassembler/disassembler_mips.h | |
parent | c984725d0035e1925371757c38fed339b409e525 (diff) |
Return error directly when uncompressed length is 0
If uncompressed length is 0, in function MemMap::MapAnonymous, it will generate a MemMap instance whose base_begin is nullptr.
Then, when OpenMemory, it will create a DexFile instance.
At DexFile::DexFile constructor, header_ is asigned to 0, then header_->string_ids_off_ will cause crash.
Bug: b/28856653
Test: test-art-host-gtest-dex_file_test
Signed-off-by: ganxiaolin <ganxiaolin@xiaomi.com>
Change-Id: Id37f7629f4646cbc385ef054cb83b15be4c59b00
Diffstat (limited to 'disassembler/disassembler_mips.h')
0 files changed, 0 insertions, 0 deletions