This is the mail archive of the
mailing list for the elfutils project.
Re: [PATCH] libdw. Don't blow up stack in dwarf_getsrclines with lots of lines.
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Wed, 10 Jul 2013 12:21:29 +0200
- Subject: Re: [PATCH] libdw. Don't blow up stack in dwarf_getsrclines with lots of lines.
On Wed, 2013-07-03 at 15:11 +0200, Mark Wielaard wrote:
> Indeed it would, as would some other failure paths. Thanks for spotting
> that. I tweaked the patch a little to initialize everything slightly
> earlier and do the deallocation at the very end (all success and failure
> paths end up at out:). New patch attached. Also tested with valgrind to
> make sure there are no leaks or erroneous frees.
I pushed this variant to master now.