From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============8895304165340003232==" MIME-Version: 1.0 From: Mark Wielaard To: elfutils-devel@lists.fedorahosted.org Subject: Re: [PATCH] libdwfl: Fix assert and set in.d_size in dwfl_link_map_report. Date: Tue, 16 Aug 2016 10:38:17 +0200 Message-ID: <20160816083817.GF2702@stream> In-Reply-To: 1470995571-9954-1-git-send-email-mjw@redhat.com --===============8895304165340003232== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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 si= ze. > = > https://bugzilla.redhat.com/show_bug.cgi?id=3D1365812 I pushed this to master. Cheers, Mark --===============8895304165340003232==--