[PATCH] libdwfl: Read no more than required to parse dynamic sections

Mark Wielaard mark@klomp.org
Tue Dec 13 16:49:49 GMT 2022


Hi Gavin,

On Thu, 2022-12-01 at 13:13 -0800, Gavin Li wrote:
> Awesome, thanks for looking over this. I only have one comment:
> there's an extra "xlatefrom.d_size = xlatefrom.d_size;" line that
> should be removed.

Thanks for spotting that. Odd the compiler didn't warn for that. There
is a xlatefrom.d_size = phnum * phentsize; just before this that does
the correct assignment.

Pushed with that line removed.

Cheers,

Mark


More information about the Elfutils-devel mailing list