diff options
| author | Mark Wielaard <[email protected]> | 2018-10-14 16:58:51 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2018-10-20 00:13:09 +0200 |
| commit | 577511f66842c324c811d1530eea32792f2bee29 (patch) | |
| tree | 129644b6fe00b5ed708278b49e5aaee36476d9ac /src/ChangeLog | |
| parent | 20f9de9b5f704cec55df92406a50bcbcfca96acd (diff) | |
findtextrel: Check that sh_entsize isn't zero.
A bogus ELF file could have sh_entsize as zero. Don't divide by zero,
but just assume there are no entries in the section.
https://sourceware.org/bugzilla/show_bug.cgi?id=23755
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 680291be..d057669c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2018-10-14 Mark Wielaard <[email protected]> + + * findtextrel.c (process_file): Check that sh_entsize is not zero. + 2018-09-13 Mark Wielaard <[email protected]> * readelf.c (print_debug_macro_section): Use elf_getdata. Print |
