summaryrefslogtreecommitdiffstats
path: root/libdwfl/ChangeLog
diff options
context:
space:
mode:
authorMark Wielaard <[email protected]>2018-10-19 15:01:29 +0200
committerMark Wielaard <[email protected]>2018-10-20 00:13:10 +0200
commit1e7c230b277b6eb82577a3bc4b56ca291c28964d (patch)
treec49c147eef876edee8ef5fd4592a104f2bfa286e /libdwfl/ChangeLog
parent22d2d082d57a7470fadc0eae67179553f4919209 (diff)
Check sh_entsize is not zero.
There were some recent bug reports where we trusted the ELF section header to be sane and divided the sh_size by the sh_entsize to get the number of objects in the section. This would cause a divide by zero if the file was corrupt and the sh_entsize was zero. Add checks for any such code. Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'libdwfl/ChangeLog')
-rw-r--r--libdwfl/ChangeLog4
1 files changed, 4 insertions, 0 deletions
diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog
index 2e7efd45..6c333d83 100644
--- a/libdwfl/ChangeLog
+++ b/libdwfl/ChangeLog
@@ -1,3 +1,7 @@
+2018-10-19 Mark Wielaard <[email protected]>
+
+ * dwfl_module_getdwarf.c (find_aux_sym): Check sh_entsize is not zero.
+
2018-10-14 Mark Wielaard <[email protected]>
* dwfl_segment_report_module.c (read_portion): Check requested