Add a bounds check when getting indexed items in dexlayout.

Will be useful to help diagnose issues caused by a corrupted dex file.

Bug: 62515426
Test: mm test-art-host
Change-Id: I8d62f379e85464ce7b418c77843e98cc195f494a
2 files changed