diff options
author | Mark Wielaard <mark@klomp.org> | 2018-10-19 15:01:29 +0200 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2018-10-20 00:13:10 +0200 |
commit | 1e7c230b277b6eb82577a3bc4b56ca291c28964d (patch) | |
tree | c49c147eef876edee8ef5fd4592a104f2bfa286e /libasm/ChangeLog | |
parent | 22d2d082d57a7470fadc0eae67179553f4919209 (diff) | |
download | elfutils-1e7c230b277b6eb82577a3bc4b56ca291c28964d.tar.gz |
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 <mark@klomp.org>
Diffstat (limited to 'libasm/ChangeLog')
-rw-r--r-- | libasm/ChangeLog | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libasm/ChangeLog b/libasm/ChangeLog index 2efd85fa..92dfd729 100644 --- a/libasm/ChangeLog +++ b/libasm/ChangeLog @@ -1,3 +1,7 @@ +2018-10-19 Mark Wielaard <mark@klomp.org> + + * disasm_cb.c (read_symtab_exec): Check sh_entsize is not zero. + 2018-07-04 Ross Burton <ross.burton@intel.com> * asm_end.c: Remove error.h include. |