commit | 4fcb1c332773ff5e650965868cdfa6afee09dc6d | [log] [tgz] |
---|---|---|
author | Tom Cherry <tomcherry@google.com> | Fri Feb 17 15:13:59 2023 -0800 |
committer | Tom Cherry <tomcherry@google.com> | Wed Feb 22 11:38:00 2023 -0800 |
tree | 8fbd7a2ec8b8f33e5e1446cfe01cab44ae4da7e6 | |
parent | e813ec150004246acc6242886cc71d70a3736332 [diff] |
Ensure that clearing the BlobCache sets mTotalSize to 0 There is a subtle bug in BlobCache::unflatten() that can result in no entries in mCacheEntries and mTotalSize >0 when the input file contains valid entries followed by an invalid entry. This change ensures that mTotalSize is set to 0 in that case. Bug: 239862516 Bug: 269687033 Test: new unit test Change-Id: Ieab1d7a98b96e4bc8ba8bc8a3c23dfe01c5eb896