]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/platform/olpc: Replace strcpy() with strscpy() in xo15_sci_add()
authorThorsten Blum <thorsten.blum@linux.dev>
Mon, 24 Nov 2025 12:54:53 +0000 (13:54 +0100)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 5 Jan 2026 14:58:57 +0000 (15:58 +0100)
commitc957072d44a735ebbe8385fc3511a4f5e6ccea93
treef1cd9148bf46cec30c34a868189cc6d88bef66a4
parent6823f10dcc84f35ca652eff0448f7da3d3b26548
x86/platform/olpc: Replace strcpy() with strscpy() in xo15_sci_add()

strcpy() has been deprecated¹ because it performs no bounds checking on the
destination buffer, which can lead to buffer overflows. Use the safer
strscpy() instead.

  ¹ https://www.kernel.org/doc/html/latest/process/deprecated.html#strcpy

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://patch.msgid.link/20251124125455.5495-2-thorsten.blum@linux.dev
arch/x86/platform/olpc/olpc-xo15-sci.c