[PATCH] bfd: fix memory allocation (PR 26005)

Gunther Nikl gnikl@justmail.de
Tue May 19 18:52:48 GMT 2020


Hello Nick,

> > To fix PR 26005 you replaced a bfd_zalloc with bfd_malloc + memset.
> > However, the memset call is misplaced since it is before the NULL
> > check.  
> 
> Doh - it has not been my week. :-(
> 
> Thanks for the correction, I have applied it.

Yes, the problem is fixed. However, ChangeLog and the installed patch do
not agree. The commit retains the memset call moving it to the right
location. The ChangeLog says that bfd_zmalloc is used.

Regards,
Gunther


More information about the Binutils mailing list