[PATCH] readelf: Handle NULL shdr in section_name

Mark Wielaard mark@klomp.org
Fri Apr 14 15:26:14 GMT 2023


Hi,

On Thu, 2023-04-06 at 17:04 +0200, Mark Wielaard wrote:
> In some error cases we want to show the section name but cannot
> because the section header is corrupt or NULL. Make sure the
> section_name always returns "???" in that case.
> 
> 	* src/readelf.c (section_name): Check for shdr == NULL.

Pushed,

Mark


More information about the Elfutils-devel mailing list