On Thu, 13 Mar 2025 07:42:09 +0100, Ahmad Fatoum wrote:
> Less than 12% of all our basprintf callsites actually bother to check
> for allocation failure. It's highly unlikely that barebox will be able
> to function when the heap is so full that the usually small basprintf
> requests fail.
>
> Therefore, make basprintf an alias for xasprintf, so barebox panics on
> OOM instead of possibly triggering undefined behavior.
>
> [...]
Applied, thanks!
[1/2] vsprintf: make basprintf an alias of xasprintf
https://git.pengutronix.de/cgit/barebox/commit/?id=12528e292f04 (link may
not be stable)
[2/2] treewide: remove NULL checks for revised basprintf
https://git.pengutronix.de/cgit/barebox/commit/?id=c574a452bd49 (link may
not be stable)
Best regards,
--
Sascha Hauer <[email protected]>