This is the mail archive of the
mailing list for the elfutils project.
Re: [PATCH] addr2line: handle_address initialize scopes to NULL.
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Fri, 24 Jan 2014 12:43:26 +0100
- Subject: Re: [PATCH] addr2line: handle_address initialize scopes to NULL.
On Mon, 2014-01-20 at 13:56 +0100, Mark Wielaard wrote:
> 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.
> +2014-01-20 Mark Wielaard <email@example.com>
> + * addr2line.c (handle_address): Initialize scopes to NULL.
I pushed this to master now.