Files
linux/net/ipv4
Ruben Wauters c2dbda0766 ipv4: ip_tunnel: Replace strcpy use with strscpy
Use of strcpy is decpreated, replaces the use of strcpy with strscpy as
recommended.

strscpy was chosen as it requires a NUL terminated non-padded string,
which is the case here.

I am aware there is an explicit bounds check above the second instance,
however using strscpy protects against buffer overflows in any future
code, and there is no good reason I can see to not use it.

I have also replaced the scrscpy above that had 3 params with the
version using 2 params. These are functionally equivalent, but it is
cleaner to have both using 2 params.

Signed-off-by: Ruben Wauters <rubenru09@aol.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250501202935.46318-1-rubenru09@aol.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-05-05 18:16:11 -07:00
..
2025-04-11 18:58:10 -07:00
2025-03-17 13:56:38 +00:00
2024-09-09 17:21:47 -07:00
2025-01-02 17:17:40 -08:00
2025-04-16 18:33:03 -07:00
2025-04-11 18:58:10 -07:00
2024-01-04 10:23:10 -08:00
2025-02-18 18:27:19 -08:00
2025-03-17 13:54:11 +00:00
2025-03-17 13:56:38 +00:00
2025-03-03 15:44:19 -08:00
2022-12-20 03:13:45 +01:00
2023-09-14 16:16:36 +02:00