diff options
author | Sim Sun <simsun@fb.com> | 2020-04-16 04:02:59 -0700 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2020-05-01 22:20:01 +0000 |
commit | a7a194beb4a28f2da3d5098d1258d7284cca2b13 (patch) | |
tree | 723eaf789959d2615ecc9bc2eaaf4f0a9319f423 /trusty/coverage/coverage_test.cpp | |
parent | b827d1db0cf5aad248e1698d47a6aa9648aea0e6 (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
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions