commit | 323e8c616e12f98eb12b39b486aafe988dba202d | [log] [tgz] |
---|---|---|
author | Peter Collingbourne <pcc@google.com> | Tue Aug 20 11:13:58 2019 -0700 |
committer | Peter Collingbourne <pcc@google.com> | Tue Aug 20 12:10:46 2019 -0700 |
tree | 789318a70be1a4b5a1b057a7d75f228b0ea79c2e | |
parent | 82e347bd4e0afa7ab3895c197cc36242cf169db1 [diff] |
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