]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdwfl: Fix assert and set in.d_size in dwfl_link_map_report.
authorMark Wielaard <mjw@redhat.com>
Fri, 12 Aug 2016 09:36:10 +0000 (11:36 +0200)
committerMark Wielaard <mjw@redhat.com>
Mon, 15 Aug 2016 07:58:18 +0000 (09:58 +0200)
commitb3a576d2d17efd75777b485c0b20a9a3cd43acb6
treeef1197768acc4716d5108b569a0a52de32c50d18
parente93f2d801fccbe5a4ffd71f07baed66453b8a56c
libdwfl: Fix assert and set in.d_size in dwfl_link_map_report.

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.

https://bugzilla.redhat.com/show_bug.cgi?id=1365812

Signed-off-by: Mark Wielaard <mjw@redhat.com>
libdwfl/ChangeLog
libdwfl/link_map.c