[PATCH] Replace unchecked malloc with xmalloc

Alan Modra amodra@gmail.com
Thu Apr 4 22:31:48 GMT 2024


On Thu, Apr 04, 2024 at 01:09:11PM +0530, Nandakumar Edamana wrote:
> On 04/04/24 12:58, Alan Modra wrote:
> > There was a problem when applying the patch, possibly caused by your
> > email app.
> 
> Thanks for accepting the patch! Maybe next time I'll attach it as a file.
> 
> BTW, what is your opinion on fixing similar issues in seemingly test-related
> files? Would that be a total waste of time? Although they may not run as
> part of the final product, tests could yield false results due to memory
> errors, right?

Tests are very unlikely to run out of memory, so, no it isn't
necessary to fix tests.  In fact you might break the test by "fixing"
it.

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list