[PATCH] libdw: Make sure dirarray is always properly freed in dwarf_getsrclines.

Mark Wielaard mark@klomp.org
Fri Jun 8 10:08:00 GMT 2018

On Tue, 2018-06-05 at 22:33 +0200, Mark Wielaard wrote:
> If there were more than 256 directories in the table and there was
> illegal DWARF before we read them all, then we might not free the
> dirarray (or the wrong one). Fix by defining the dirarray early
> (before the first data sanity check) and making sure it is not
> (still) equal to dirstack before freeing.

Pushed to master.

More information about the Elfutils-devel mailing list