diff options
author | Mark Wielaard <mark@klomp.org> | 2021-12-08 14:26:54 +0100 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2021-12-08 17:18:07 +0100 |
commit | 3038ee821b29147f2b036372937747f150f2f755 (patch) | |
tree | 31f020cbc0bfc12131755fed4b5918864731ae7e /libdwfl/ChangeLog | |
parent | 8349d63903ce20f15ab78150d150822b1883098b (diff) | |
download | elfutils-3038ee821b29147f2b036372937747f150f2f755.tar.gz |
libdwfl: Don't read beyond end of file in dwfl_segment_report_module
The ELF might not be fully mapped into memory (which probably means
the phdrs are bogus). Don't try to read beyond what we have in memory
already.
Reported-by: Evgeny Vereshchagin <evvers@ya.ru>
Signed-off-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'libdwfl/ChangeLog')
-rw-r--r-- | libdwfl/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog index 57b2c494..b2a8752a 100644 --- a/libdwfl/ChangeLog +++ b/libdwfl/ChangeLog @@ -1,3 +1,8 @@ +2021-12-08 Mark Wielaard <mark@klomp.org> + + * dwfl_segment_report_module.c (dwfl_segment_report_module): Don't + read beyond of (actual) end of (memory) file. + 2021-11-18 Matthias Maennich <maennich@google.com> * linux-kernel-modules.c (dwfl_linux_kernel_report_modules): |