diff options
author | Tamas Zsoldos <tamas.zsoldos@arm.com> | 2020-08-18 12:04:56 +0200 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2020-08-18 18:08:28 -0700 |
commit | f30a46f100f81c365e605b7aed339b7f5c8a7326 (patch) | |
tree | 2fbad4f6b8e5a45649cc0a91dfc90d40b931bacf /libutils/Unicode.cpp | |
parent | d7cb6e1fd098af49354ad242e5ac01b9d95e34dd (diff) |
libunwindstack: don't save pseudoregisters while evaluating Dwarf
Currently, while evaluating a Dwarf section, even pseudoregisters are
saved in regs_info. Since pseudoregisters are stored separately from
ordinary registers, trying to read them the usual way will result in
an out-of-bounds read. There's no memory corruption as regs_info is
big enough to store all existing pseudoregisters.
With this patch, pseudoregisters are simply not saved in regs_info.
Added new unit tests to cover the pseudo register cases.
Test: libunwindstack_test
Change-Id: If21b2a79f2fcca85644eec430f3d22e354b001ec
Diffstat (limited to 'libutils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions