[PATCH] riscv: KGDB: Replace deprecated strcpy in kgdb_arch_handle_qxfer_pkt

Paul Walmsley pjw at kernel.org
Mon Oct 27 23:21:34 PDT 2025


On Sat, 11 Oct 2025, Thorsten Blum wrote:

> 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 at linux.dev>

Thanks, queued for v6.18-rc fixes.

- Paul



More information about the linux-riscv mailing list