Fix out-of-bounds read in ApiList::Dump.

In this loop i ranges from DomainApi::kMin to DomainApi:kMax, while API
names in kDomainApiNames are stored at indexes starting from zero, so we need
to subtract DomainApi::kMin before indexing into kDomainApiNames. Found by
running CTS under HWASAN with the new global instrumentation support.

Bug: 139749928
Change-Id: Ib35c4494e7652cfaf84e07ff362210d67a50fba2
1 file changed