Re: [PATCH] sonypi: use strscpy() in sonypi_acpi_probe
From: Ilpo Järvinen
Date: Tue Apr 28 2026 - 12:36:14 EST
On Fri, 24 Apr 2026 09:57:57 +0200, Thorsten Blum wrote:
> strcpy() has been deprecated¹ because it performs no bounds checking on
> the destination buffer, which can lead to buffer overflows. While the
> current code works correctly, replace strcpy() with the safer strscpy()
> to follow secure coding best practices.
>
> ¹ https://www.kernel.org/doc/html/latest/process/deprecated.html#strcpy
>
> [...]
Thank you for your contribution, it has been applied to my local
review-ilpo-next branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-next branch only once I've pushed my
local branch there, which might take a while.
The list of commits applied:
[1/1] sonypi: use strscpy() in sonypi_acpi_probe
commit: b54a4676b3069c9a8cc68e07122e6438491a3353
--
i.