commit | 247f85869852e5f0fc461c4c9827d1347e75204a | [log] [tgz] |
---|---|---|
author | Mark Wielaard <mjw@redhat.com> | Mon Jan 20 13:49:48 2014 +0100 |
committer | Mark Wielaard <mjw@redhat.com> | Fri Jan 24 12:40:28 2014 +0100 |
tree | 33857daaf990aba9d81645957615e4f992e2f5a9 | |
parent | a9039623c272f458a53f09009c2a0e1d6e60491d [diff] |
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>