[PATCH] backends: Check results for NULL early in dwarf_peeled_die_type
Mark Wielaard
mark@klomp.org
Fri Apr 14 15:26:32 GMT 2023
Hi,
On Thu, 2023-04-06 at 17:04 +0200, Mark Wielaard wrote:
> Calling dwarf_peeled_die_type with a NULL results pointer is an error,
> check early that result is not NULL so dwarf_formref_die and
> dwarf_peel_type won't try to set the NULL Dwarf_Die.
>
> * backends/libebl_CPU.h (dwarf_peeled_die_type): Move check
> for results == NULL to start of function.
Pushed,
Mark
More information about the Elfutils-devel
mailing list