This is the mail archive of the
mailing list for the elfutils project.
Re: [PATCH] libdwfl: Fix assert and set in.d_size in dwfl_link_map_report.
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Tue, 16 Aug 2016 10:38:17 +0200
- Subject: Re: [PATCH] libdwfl: Fix assert and set in.d_size in dwfl_link_map_report.
On Fri, Aug 12, 2016 at 11:52:51AM +0200, Mark Wielaard wrote:
> When reading the phdrs from a core file segment fails we would try to read
> them from the exec. This fallback path contained a faulty assert that the
> requested size of the phdrs was still setup. But the core file reading
> callback might have reset the d_size value to zero on error. So explicitly
> set the number of bytes we want to read again instead of asserting the size.
I pushed this to master.