summaryrefslogtreecommitdiff
path: root/libunwindstack/tests/MemoryCacheTest.cpp
diff options
context:
space:
mode:
authorRyan Mitchell <rtmitchell@google.com>2019-05-28 15:27:10 -0700
committerRyan Mitchell <rtmitchell@google.com>2019-05-28 22:59:53 +0000
commitce1c49da6fd0556abaa550d19bb0ee07b7e2ae71 (patch)
tree0e3cf795ca1f4577f06efd1974690761f0f3fdd4 /libunwindstack/tests/MemoryCacheTest.cpp
parent2dca1885039ae9e8f55b7828a503396e6002a1cb (diff)
Fix leak of mapped zip central directories
Memory mapping the central directory of specific APKs caused memory mappings to build up over time because they were never unmapped correctly. This is because MappedFile is not calling munmap with the size of the data after aligning the mmap offset to a page boundary. Bug: 133463863 Test: install APKs and verify that the entire mapped CD is unmaped Test: ran aapt2 as daemon and confirmed that mapped CD is unmapped Change-Id: I26bda27c83615d1a166d92e43a2327909c453b89
Diffstat (limited to 'libunwindstack/tests/MemoryCacheTest.cpp')
0 files changed, 0 insertions, 0 deletions