[PATCH] common: fix: add NULL checks for xrealloc in make_string

Tom Rini trini at konsulko.com
Tue Feb 11 15:18:02 CET 2025


On Fri, 07 Feb 2025 01:01:23 +0300, Anton Moryakov wrote:

> - Check return value of xrealloc for NULL.
> - Free allocated memory and return NULL if xrealloc fails.
> - Prevent NULL pointer dereference in strlen and strcat.
> 
> Triggers found by static analyzer Svace.
> 
> 
> [...]

Applied to u-boot/next, thanks!

-- 
Tom




More information about the U-Boot mailing list