commit | 2aba0a228324b2868e62df074fac616d7cc4e609 | [log] [tgz] |
---|---|---|
author | Fabien Sanglard <sanglardf@google.com> | Wed Jun 14 23:08:02 2023 +0000 |
committer | Fabien Sanglard <sanglardf@google.com> | Thu Jun 15 00:37:52 2023 +0000 |
tree | 25528cfaccb0babd8db3b96036314c0a9ad629fa | |
parent | 61b9935e50ed5aa5ad642691e370a740db22271a [diff] |
Fix LruCache, allow std:string caching The default initalization for mNullValue uses 0 which is in the case of a std::string TValue will invoke the contructor with undefined behavior parameter. Using an empty uniform initialization {} addresses the problem. Test: Already tested in lrucache_test.cpp Bug: 257127748 Change-Id: I37420ce8a16c99f3014538a0208d7e113870b1c7