[PATCH] Check sh_entsize is not zero.

Mark Wielaard mark@klomp.org
Fri Oct 19 23:01:00 GMT 2018


On Fri, 2018-10-19 at 15:03 +0200, Mark Wielaard wrote:
> 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.

Pushed to master.



More information about the Elfutils-devel mailing list