[PATCH] readelf: Fix division by zero in handle a relocation sections
Mark Wielaard
mark@klomp.org
Tue Apr 2 11:13:50 GMT 2024
Hi Maks,
On Sat, 2024-03-30 at 00:23 +0300, Maks Mishin wrote:
> Variable 'sh_entsize', whose possible value set allows a zero value
> by calling function 'gelf_fsize', is used as a denominator
> in calculation of 'nentries' variable.
>
> Found by RASU JSC.
Sorry, but I am going to stop reviewing your patches till you have
responded to some of the previous reviews. All your suggested changes
are (subtly) wrong. In this case gelf_fsize cannot return zero for
example.
Please better explain your proposed changes and provide
testcases/examples of how the current code is wrong.
Thanks,
Mark
More information about the Elfutils-devel
mailing list