summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
authorVladimir Marko <vmarko@google.com>2016-05-03 17:17:50 +0100
committerVladimir Marko <vmarko@google.com>2016-05-05 15:24:38 +0100
commit0ca8add2ae34c26291694ecc784d64f0cc1c1380 (patch)
tree6c58e10e556a04afc88d25710934b04b12244cb1 /compiler/optimizing/graph_visualizer.cc
parent59399abce0223e74af00193436e39e109d98dacb (diff)
Fix ProtoId ordering check in DexFileVerifier.
The code previously checked for kNoDexIndex16 as the type list terminator. This is incorrect as we should not actually see the kNoDexIndex16 in type lists in supported dex files. To make sure that we don't see kNoDexIndex16, check the size of the arrays with documented limits, i.e. type-ids and proto-ids, see dex_file.h. In the ProtoId ordering check, DCHECK() that we don't encounter kNoDexIndex16 and verify that the previous list is not longer if the current list's elements match. Bug: 28580925 Change-Id: I7b17ce54b0047d97e13be88377676b1b7c713ae1
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions