commit | f387a91b367ea73a0af2cc31d272d70f1cda6f34 | [log] [tgz] |
---|---|---|
author | Corina <corinac@google.com> | Thu Feb 25 23:08:58 2021 +0000 |
committer | Corina <corinac@google.com> | Thu Feb 25 23:30:49 2021 +0000 |
tree | 240be35256ce6078ebba5f1567a385d3eb5635e5 | |
parent | e85fe369595a0a3642739d8c78bb94ff36ccb94f [diff] |
Catch OOME when allocating byte array. We had reports of OOME during normal usage. We do not have the files to reproduce, but the error is thrown when allocating a byte array to read the Iso box. We had a check on MAX_INT, but device can run out of memory even for smaller values. Added a try-catch to avoid the error. Bug: 178411011 Test: m; atest . Change-Id: I60fe57a8c7018dc71cd2ba82cc6d8f68ac39b277