diff options
author | Sim Sun <simsun@fb.com> | 2020-04-16 04:02:59 -0700 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2020-05-01 17:24:57 -0700 |
commit | ce0f3201d1cf63c19bd1a47e5633023a5e683799 (patch) | |
tree | 1c323f54cae05070deb499e99c60a6652b65bbd7 /libutils/FileMap_test.cpp | |
parent | 0b4313fedea00209ee2cd726944580cf11652f66 (diff) |
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
(cherry picked from commit a7a194beb4a28f2da3d5098d1258d7284cca2b13)
Diffstat (limited to 'libutils/FileMap_test.cpp')
0 files changed, 0 insertions, 0 deletions