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 | 16068afb589a10017c3250c614e8d75fdbba05ad (patch) | |
| tree | 2fbad4f6b8e5a45649cc0a91dfc90d40b931bacf /libutils/Unicode.cpp | |
| parent | 87e8afc6ea5a2f48fe45e4d77784628083ab488c (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
