diff options
author | Mark Wielaard <mjw@redhat.com> | 2014-01-20 13:49:48 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2014-01-24 12:40:28 +0100 |
commit | 247f85869852e5f0fc461c4c9827d1347e75204a (patch) | |
tree | 33857daaf990aba9d81645957615e4f992e2f5a9 /tests/Makefile.am | |
parent | a9039623c272f458a53f09009c2a0e1d6e60491d (diff) | |
download | elfutils-247f85869852e5f0fc461c4c9827d1347e75204a.tar.gz |
addr2line: handle_address initialize scopes to NULL.
dwarf_getscopes returns the number of scope DIEs containing a PC address.
It returns -1 for errors or 0 if no scopes match PC. If dwarf_getscopes
returned 0, then scopes will not be allocated and handle_address might free
the uninitialized scopes pointer. Make sure it always has a defined value.
Signed-off-by: Mark Wielaard <mjw@redhat.com>
Diffstat (limited to 'tests/Makefile.am')
0 files changed, 0 insertions, 0 deletions