]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
riscv: KGDB: Replace deprecated strcpy in kgdb_arch_handle_qxfer_pkt
authorThorsten Blum <thorsten.blum@linux.dev>
Sat, 11 Oct 2025 00:47:47 +0000 (02:47 +0200)
committerPaul Walmsley <pjw@kernel.org>
Tue, 28 Oct 2025 05:30:01 +0000 (23:30 -0600)
commit5228ed2c624449d1a53d1c84ba01c021d2df95c0
treea0af8f79cd806246b11a9a20eedc8d1ea5cc732e
parent44aa25c000b41d7afcb030ac1b8a38f06dabef0a
riscv: KGDB: Replace deprecated strcpy in kgdb_arch_handle_qxfer_pkt

strcpy() is deprecated because it can cause a buffer overflow when the
sizes of the source and the destination are not known at compile time.
Use strscpy() instead.

Link: https://github.com/KSPP/linux/issues/88
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://lore.kernel.org/r/20251011004750.461954-1-thorsten.blum@linux.dev
Signed-off-by: Paul Walmsley <pjw@kernel.org>
arch/riscv/kernel/kgdb.c