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 protected]> > + > + * addr2line.c (handle_address): Initialize scopes to NULL.
I pushed this to master now.
