summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage.cpp
diff options
context:
space:
mode:
authorSim Sun <simsun@fb.com>2020-04-16 04:02:59 -0700
committerChristopher Ferris <cferris@google.com>2020-05-01 22:20:01 +0000
commita7a194beb4a28f2da3d5098d1258d7284cca2b13 (patch)
tree723eaf789959d2615ecc9bc2eaaf4f0a9319f423 /trusty/coverage/coverage.cpp
parentb827d1db0cf5aad248e1698d47a6aa9648aea0e6 (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.cpp')
0 files changed, 0 insertions, 0 deletions