[PATCH] libc_fatal: Get rid of alloca

Andreas Schwab schwab@suse.de
Thu Aug 31 13:21:23 GMT 2023


On Aug 31 2023, Joe Simmons-Talbott via Libc-alpha wrote:

> NOTE: I'm not certain that this is the best way to handle allocation
> failures by jumping straight to the abort and am open to other
> suggestions.

The problem with this is that __libc_message and __libc_fatal can be
called in situations when malloc cannot be used.  It should only use
async signal safe functions.

-- 
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 Libc-alpha mailing list