summaryrefslogtreecommitdiff
path: root/test/ProfileTestMultiDex/Second.java
diff options
context:
space:
mode:
authorVladimir Marko <vmarko@google.com>2016-05-03 17:17:50 +0100
committerVladimir Marko <vmarko@google.com>2016-05-10 12:02:40 +0100
commitd6bcae6d82d99727150f0e3c3d9cb3e9bc739d50 (patch)
treede7a8882c4df7f0fd9f4561f1c4d245a6fc7cd57 /test/ProfileTestMultiDex/Second.java
parent23fddf80cdfc51136ad7684d74961778e79be5bc (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 (cherry picked from commit 0ca8add2ae34c26291694ecc784d64f0cc1c1380) Change-Id: Ied6dcbd8d04e3dfef5695dbd9b3a30a079038b2b
Diffstat (limited to 'test/ProfileTestMultiDex/Second.java')
0 files changed, 0 insertions, 0 deletions