[PATCH] readelf: Replace xmalloc with malloc in slurp_relr_relocs

Marcus Nilsson brainbomb@gmail.com
Fri Jun 17 09:01:34 GMT 2022


Thank you for you reply. Since I don't have push permissions, feel free to
commit this one if no one disapproves.

Thanks,
Marcus Nilsson

On Wed, Jun 8, 2022 at 8:11 AM Jan Beulich <jbeulich@suse.com> wrote:

> On 07.06.2022 23:23, Marcus Nilsson via Binutils wrote:
> > Using xmalloc makes the null check redundant since failing allocation
> > will exit the program. Instead use malloc and let the error be
> > conveyed up the call chain.
> >
> > binutils/ChangeLog:
> >       * readelf.c: (slurp_relr_relocs) Use malloc instead of xmalloc
> >         when allocating space for relocations.
>
> OK.
>
> Jan
>
>

-- 
Marcus Nilsson
-
tel: +46(0)704911844
mail: marcus@landmarknilsson.se
github: github.com/metmo
linkedin: linkedin.com/in/landmarknilsson


More information about the Binutils mailing list