[PATCH] ARM: i.MX: phytec-som-imx6: use strdup instead of basprintf
Sascha Hauer
s.hauer at pengutronix.de
Thu Feb 22 23:32:10 PST 2024
On Tue, 20 Feb 2024 13:20:04 +0100, Ahmad Fatoum wrote:
> Using basprintf to duplicate a string violates memory safety if
> default_environment_path were to contain a format specifier.
>
> clangd warns about this, so fix this by using strdup instead.
>
>
Applied, thanks!
[1/1] ARM: i.MX: phytec-som-imx6: use strdup instead of basprintf
https://git.pengutronix.de/cgit/barebox/commit/?id=e29607037621 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list