libdwfl: Make sure phent is sane and there is at least one phdr
authorMark Wielaard <mark@klomp.org>
Wed, 15 Dec 2021 23:29:22 +0000 (00:29 +0100)
committerMark Wielaard <mark@klomp.org>
Thu, 16 Dec 2021 18:50:38 +0000 (19:50 +0100)
commit3c9b69161b842708b4ef2f4e0f0b3ad1812798c2
treef09dca9a1dd00f26dab14e6f5fdb0f161cb0fc96
parent8303a9cf380a57d035557a157fe0e4d58e2b3090
libdwfl: Make sure phent is sane and there is at least one phdr

dwfl_link_map_report can only handle program headers that are the
correct (32 or 64 bit) size. The buffer read in needs to contain room
for at least one Phdr.

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

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