Re: [PATCH] ARM: i.MX: phytec-som-imx6: use strdup instead of basprintf

2024-02-22 Thread Sascha Hauer
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: phy

[PATCH] ARM: i.MX: phytec-som-imx6: use strdup instead of basprintf

2024-02-20 Thread Ahmad Fatoum
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. Signed-off-by: Ahmad Fatoum --- arch/arm/boards/phytec-som-imx6/board.c | 2 +- 1 file changed, 1 insertion(