]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ipv6: sit: Replace deprecated strcpy with strscpy
authorThorsten Blum <thorsten.blum@linux.dev>
Fri, 27 Feb 2026 00:45:42 +0000 (01:45 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 28 Feb 2026 18:06:29 +0000 (10:06 -0800)
commitded4a02e7d0497c91ec8665e904c7dc817922993
tree22c6587adc97c09cb4c6f543f5c10413060d6dad
parenteed562b2a6d088d1afa83cd60b2eccaec08e81ca
ipv6: sit: Replace deprecated strcpy with strscpy

strcpy() has been deprecated [1] because it performs no bounds checking
on the destination buffer, which can lead to buffer overflows. Replace
it with the safer strscpy().  Use the two-argument version of strscpy()
to copy 'parms->name' in ipip6_tunnel_locate().

Link: https://www.kernel.org/doc/html/latest/process/deprecated.html#strcpy
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20260227004541.798966-3-thorsten.blum@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv6/sit.c