summaryrefslogtreecommitdiff
path: root/libdwfl/ChangeLog
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2021-12-23 23:16:25 +0100
committerMark Wielaard <mark@klomp.org>2022-01-04 00:36:49 +0100
commit1cf73965853037301a6099dea5368a1303cde2ba (patch)
tree7de7e275009a2fa2eb04b54712a6a807a4a76609 /libdwfl/ChangeLog
parent4fdd85881c8acd06db737c45ea6aabc60aef3d4d (diff)
downloadelfutils-1cf73965853037301a6099dea5368a1303cde2ba.tar.gz
libdwfl: Make sure dwfl_elf_phdr_memory_callback returns at least minread
The callers of dwfl_elf_phdr_memory_callback assume at least minread bytes are read and available. Make sure to check start is smaller than elf->maximum_size before reading more. Return false if end - start is smaller than minread. Found by afl-fuzz. Signed-off-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'libdwfl/ChangeLog')
-rw-r--r--libdwfl/ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog
index abd5c34a..49a35e41 100644
--- a/libdwfl/ChangeLog
+++ b/libdwfl/ChangeLog
@@ -1,3 +1,8 @@
+2021-12-23 Mark Wielaard <mark@klomp.org>
+
+ * core-file.c (dwfl_elf_phdr_memory_callback): Check start <
+ elf->maximum_size and end - start < minread.
+
2021-12-20 Mark Wielaard <mark@klomp.org>
* dwfl_segment_report_module.c (dwfl_segment_report_module): Move