Files
linux/drivers/char
Thorsten Blum b54a4676b3 sonypi: use strscpy() in sonypi_acpi_probe
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

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patch.msgid.link/20260424075755.305770-3-thorsten.blum@linux.dev
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
2026-04-28 19:00:32 +03:00
..
2025-12-29 11:53:38 +01:00
2024-07-03 16:44:22 +02:00
2025-12-29 11:53:38 +01:00
2026-03-11 15:22:49 +01:00