libdwfl: Don't try to convert too many bytes in dwfl_link_map_report
authorMark Wielaard <mark@klomp.org>
Wed, 8 Dec 2021 12:39:47 +0000 (13:39 +0100)
committerMark Wielaard <mark@klomp.org>
Thu, 9 Dec 2021 18:34:19 +0000 (19:34 +0100)
commit809f2d70ec770d512cf6b1e70a67f5eb84c4508c
tree1a745ee9b16367578b8fc2dc25b573956dbb8639
parent7fc69582efcfb5f005f04c818a7aab76ff1090be
libdwfl: Don't try to convert too many bytes in dwfl_link_map_report

When trying to read (corrupt) phdrs from a core file we only want
to read and convert the bytes we could read. Also make sure we don't
try to allocate too big buffers.

https://sourceware.org/bugzilla/show_bug.cgi?id=28666

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdwfl/ChangeLog
libdwfl/link_map.c