[PATCH] Fix -Wstringop-overflow warning in ecoff_link_hash_newfunc

Andreas Schwab schwab@suse.de
Thu Sep 26 11:56:17 GMT 2024


On Sep 26 2024, Jan Beulich wrote:

> Okay (and likely obvious anyway). I'd like to note though that the bad case
> can't happen in practice, afaict, as _bfd_link_hash_newfunc() won't ever
> return NULL when passed non-NULL.

Right, that's why I changed the original subject "Fix NULL pointer
dereference" into this one.  With enough of inlining the compiler should
be able to figure that out by itself, though.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


More information about the Binutils mailing list