This is the mail archive of the
mailing list for the elfutils project.
Re: [PATCH] libdw: Fix bad free on invalid data in dwarf_getsrclines.c.
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Mon, 22 Feb 2016 12:12:21 +0100
- Subject: Re: [PATCH] libdw: Fix bad free on invalid data in dwarf_getsrclines.c.
On Sat, 2016-02-13 at 19:42 +0100, Mark Wielaard wrote:
> If the last dir name wasn't zero terminated we goto invalid_data
> and might free the wrong data because we believe ndirlist is valid.
> Don't update ndirlist until we are sure we will use all dirs.
Pushed to master.