This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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  <mjw@redhat.com>
> +
> +	* addr2line.c (handle_address): Initialize scopes to NULL.

I pushed this to master now.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]