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
diff --git a/libartbase/base/hiddenapi_flags.h b/libartbase/base/hiddenapi_flags.h
index 9351063..59e17a8 100644
--- a/libartbase/base/hiddenapi_flags.h
+++ b/libartbase/base/hiddenapi_flags.h
@@ -297,7 +297,7 @@
         } else {
           os << ",";
         }
-        os << kDomainApiNames[i];
+        os << kDomainApiNames[i - helper::ToUint(DomainApi::kMin)];
       }
     }