diff options
author | 2023-02-17 15:13:59 -0800 | |
---|---|---|
committer | 2023-02-22 11:38:00 -0800 | |
commit | 4fcb1c332773ff5e650965868cdfa6afee09dc6d (patch) | |
tree | 8fbd7a2ec8b8f33e5e1446cfe01cab44ae4da7e6 /libs/ui/Gralloc4.cpp | |
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
Diffstat (limited to 'libs/ui/Gralloc4.cpp')
0 files changed, 0 insertions, 0 deletions