diff options
author | Christopher Ferris <cferris@google.com> | 2016-02-05 11:07:12 -0800 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2016-02-05 15:22:34 -0800 |
commit | d4c884330c384bbb06f9a0d1fee2d2ae2086521c (patch) | |
tree | 2bcbc13b5dd0c2dc91e2f16f26a0a8c97da61e30 /libutils/Unicode.cpp | |
parent | 718625010d839481cdef5f0305f2622a0aa87cd8 (diff) |
Fix use of uninitialized memory.
When creating an UnwindMapLocal fails in the Build() function call,
the destructor for UnwindMap is called. Unfortunately, the map_cursor_
member variable has not been initialized, so the call to destroy it
winds up operating on garbage data.
Part of this is a result of a bad class hierarchy, so this refactors
the classes slightly, and properly initializes the map_cursor_ member
variable in the base class.
Bug: 26931578
Change-Id: I885596bf65e4ef63559cee2c56cd41576d5ecc1b
Diffstat (limited to 'libutils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions