diff options
author | David Sehr <sehr@google.com> | 2016-11-21 12:52:12 -0800 |
---|---|---|
committer | David Sehr <sehr@google.com> | 2016-11-22 10:44:35 -0800 |
commit | 28e74eda7dc2fa3139f09bb334901e33ef34b66e (patch) | |
tree | ba79b6296f07da180cb54e0b946670bf5f821b4e /compiler/optimizing/graph_visualizer.cc | |
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
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions