summaryrefslogtreecommitdiff
path: root/libs/androidfw/AssetManager.cpp
diff options
context:
space:
mode:
author Arthur Ishiguro <arthuri@google.com> 2024-11-19 00:57:01 +0000
committer Arthur Ishiguro <arthuri@google.com> 2024-11-19 01:00:06 +0000
commiteede68f1f36761156b05ea0640097c470666c246 (patch)
tree64d66c25f51af8124254715e499d104a8f087c4f /libs/androidfw/AssetManager.cpp
parent8c9cb5a86344c05ae6216f31cd67507a4acf4e4a (diff)
Fix IndexOutOfBoundsException in HubEndpointInfo
new ArrayList<>(int) only sets the capacity, and add() is needed when adding new elements initially to prevent out of bounds exception. Bug: 378487799 Flag: android.chre.flags.offload_api Test: Run default Context Hub HAL, verify no service crash Change-Id: I650e4dba20e74faf5aed3e7a433b6737f536ab3e
Diffstat (limited to 'libs/androidfw/AssetManager.cpp')
0 files changed, 0 insertions, 0 deletions