commit | a7a194beb4a28f2da3d5098d1258d7284cca2b13 | [log] [tgz] |
---|---|---|
author | Sim Sun <simsun@fb.com> | Thu Apr 16 04:02:59 2020 -0700 |
committer | Christopher Ferris <cferris@google.com> | Fri May 01 22:20:01 2020 +0000 |
tree | 723eaf789959d2615ecc9bc2eaaf4f0a9319f423 | |
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