android_system_core/libunwindstack/tests
Sim Sun a7a194beb4 Fix dangling pointer issue in LocalUpdatbleMaps
Libunwindstack would remove duplicated items and update the `prev_map`
during reparsing `/proc/self/maps`. But we leave `prev_real_map`
pointing toward a MapInfo that will be deleted soon. It will cause a
dangling pointer issue.

Add new tests to cover this dangling pointer issue.

Bug: 155511785

Test: libunwindstack_test
Change-Id: I62e1b97bcb73f07e9349671f0b758f5ec9de16c0
2020-05-01 22:20:01 +00:00
..
files Properly handle empty map after read-only map. 2020-01-22 18:30:12 -08:00
ArmExidxDecodeTest.cpp Fix build with new googletest 2019-11-10 04:08:25 +00:00
ArmExidxExtractTest.cpp
DexFileData.h
DexFileTest.cpp Avoid re-mapping dex file that's in local memory. 2020-04-07 18:07:38 -07:00
DexFilesTest.cpp Fix global finding logic. 2020-01-21 18:00:57 -08:00
DwarfCfaLogTest.cpp Add a name for all test suites 2019-12-11 12:46:20 -08:00
DwarfCfaTest.cpp Add a name for all test suites 2019-12-11 12:46:20 -08:00
DwarfDebugFrameTest.cpp Rewrite DwarfSectionImpl::InsertFde 2020-02-22 11:45:42 -08:00
DwarfEhFrameTest.cpp Add a name for all test suites 2019-12-11 12:46:20 -08:00
DwarfEhFrameWithHdrTest.cpp Add a name for all test suites 2019-12-11 12:46:20 -08:00
DwarfMemoryTest.cpp
DwarfOpLogTest.cpp Add a name for all test suites 2019-12-11 12:46:20 -08:00
DwarfOpTest.cpp Add a name for all test suites 2019-12-11 12:46:20 -08:00
DwarfSectionImplTest.cpp Add a name for all test suites 2019-12-11 12:46:20 -08:00
DwarfSectionTest.cpp
ElfCacheTest.cpp Properly handle empty map after read-only map. 2020-01-22 18:30:12 -08:00
ElfFake.cpp
ElfFake.h Fix handling of possible bad gnu_debugdata_size. 2019-12-19 16:48:15 -08:00
ElfInterfaceArmTest.cpp
ElfInterfaceTest.cpp Fix handling of possible bad gnu_debugdata_size. 2019-12-19 16:48:15 -08:00
ElfTest.cpp Properly handle empty map after read-only map. 2020-01-22 18:30:12 -08:00
ElfTestUtils.cpp
ElfTestUtils.h
GenGnuDebugdata.cpp
IsolatedSettings.cpp
JitDebugTest.cpp Fix support finding global variables. 2019-12-03 17:35:00 -08:00
LocalUnwinderTest.cpp
LocalUpdatableMapsTest.cpp Fix dangling pointer issue in LocalUpdatbleMaps 2020-05-01 22:20:01 +00:00
LogFake.cpp
LogFake.h
MapInfoCreateMemoryTest.cpp Properly handle empty map after read-only map. 2020-01-22 18:30:12 -08:00
MapInfoGetBuildIDTest.cpp Fix off-by-one in ReadBuildIDFromMemory. 2020-03-31 10:29:38 -07:00
MapInfoGetElfTest.cpp Properly handle empty map after read-only map. 2020-01-22 18:30:12 -08:00
MapInfoGetLoadBiasTest.cpp Properly handle empty map after read-only map. 2020-01-22 18:30:12 -08:00
MapInfoTest.cpp Properly handle empty map after read-only map. 2020-01-22 18:30:12 -08:00
MapsTest.cpp Properly handle empty map after read-only map. 2020-01-22 18:30:12 -08:00
MemoryBufferTest.cpp
MemoryCacheTest.cpp
MemoryFake.cpp
MemoryFake.h
MemoryFileTest.cpp
MemoryLocalTest.cpp
MemoryMteTest.cpp libunwindstack: Add Memory::ReadTag() function for reading memory tags. 2020-04-16 00:23:45 -07:00
MemoryOfflineBufferTest.cpp
MemoryOfflineTest.cpp
MemoryRangeTest.cpp
MemoryRangesTest.cpp
MemoryRemoteTest.cpp Reland "bionic_libc_platform_headers is only available when building with Bionic". 2020-04-29 18:16:46 +01:00
MemoryTest.cpp Optimize Memory::ReadString 2020-04-16 15:03:19 -07:00
RegsFake.h Make GetPcAdjustment a free function. 2020-03-19 17:51:20 -07:00
RegsInfoTest.cpp
RegsIterateTest.cpp unwindstack: RegsArm64: fix harmless off by 1 + iterate GPRs contiguously 2020-01-24 19:50:45 +00:00
RegsStepIfSignalHandlerTest.cpp
RegsTest.cpp Make GetPcAdjustment a free function. 2020-03-19 17:51:20 -07:00
SymbolsTest.cpp Create minimal remap table for symbol binary search. 2020-04-16 18:17:45 +01:00
TestLocal.cpp
TestUtils.cpp
TestUtils.h libunwindstack: Add Memory::ReadTag() function for reading memory tags. 2020-04-16 00:23:45 -07:00
UnwindOfflineTest.cpp Properly handle empty map after read-only map. 2020-01-22 18:30:12 -08:00
UnwindTest.cpp
UnwinderTest.cpp Make GetPcAdjustment a free function. 2020-03-19 17:51:20 -07:00
VerifyBionicTerminationTest.cpp