android_system_core/libutils/include/utils
Fabien Sanglard 2aba0a2283 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
2023-06-15 00:37:52 +00:00
..
AndroidThreads.h
Atomic.h
BitSet.h
ByteOrder.h
CallStack.h Use the new AndroidUnwinder object. 2022-05-10 17:19:12 -07:00
Compat.h Fix TEMP_FAILURE_RETRY on non-GNU C++ dialects 2022-03-16 20:54:31 +00:00
Condition.h
Debug.h
Endian.h
Errors.h Fix Errors.h on systems that define NO_ERROR 2022-03-16 02:15:04 +00:00
ErrorsMacros.h Fix OkOrFail<status_t> conversion ambiguities 2022-02-25 14:27:41 -05:00
FastStrcmp.h
FileMap.h
Flattenable.h
Functor.h
JenkinsHash.h
KeyedVector.h
LightRefBase.h
List.h
Log.h
Looper.h Looper: Use sequence numbers in epoll_event to track requests 2021-09-01 14:52:52 +00:00
LruCache.h Fix LruCache, allow std:string caching 2023-06-15 00:37:52 +00:00
misc.h
Mutex.h
NativeHandle.h
Printer.h
ProcessCallStack.h
RefBase.h libutils: Fix missing definition of shared_ptr and unique_ptr 2022-11-25 12:15:53 +05:30
RWLock.h
Singleton.h
SortedVector.h
StopWatch.h
String8.h
String16.h
StrongPointer.h RefBase: test for stack check 2022-07-29 00:54:57 +00:00
SystemClock.h
Thread.h Doc Thread requirement. 2022-05-11 23:13:17 +00:00
ThreadDefs.h
threads.h
Timers.h
Tokenizer.h
Trace.h
TypeHelpers.h
Unicode.h
Vector.h
VectorImpl.h