commit | 28e74eda7dc2fa3139f09bb334901e33ef34b66e | [log] [tgz] |
---|---|---|
author | David Sehr <sehr@google.com> | Mon Nov 21 12:52:12 2016 -0800 |
committer | David Sehr <sehr@google.com> | Tue Nov 22 10:44:35 2016 -0800 |
tree | ba79b6296f07da180cb54e0b946670bf5f821b4e | |
parent | 701bb7d1d750850b41b26c75255e1829efb4860e [diff] |
Verify for type_id out of range errors The dalvik documentation states that several fields used as type ids are uint, which is 32 bits. Other places use uint16, which is obviously 16. This adds assertions that there are fewer than 65536 class_def_items/class_data_items and that the fields in question are either valid (0 <= id <= 0xffff) or id == kDexNoIndex (0xffffffff). Test: m test-art-host Change-Id: I584615192086e6d8bb30aa11217d569d6dbe1280