aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorJustin Stitt <[email protected]>2023-08-02 00:21:58 +0000
committerPalmer Dabbelt <[email protected]>2023-08-02 13:45:28 -0700
commit12d61a1bc28eef8d799ba00f370f421f7e942629 (patch)
tree0a0fd3ba74220d0feafb83bf81cb98030138399c /net/unix/sysctl_net_unix.c
parent54670b59cfab843671ecc6a92d9e0fda20174df0 (diff)
RISC-V: cpu: refactor deprecated strncpy
`strncpy` is deprecated for use on NUL-terminated destination strings [1]. Favor not copying strings onto stack and instead use strings directly. This avoids hard-coding sizes and buffer lengths all together. Link: https://github.com/KSPP/linux/issues/90 Cc: [email protected] Suggested-by: Kees Cook <[email protected]> Signed-off-by: Justin Stitt <[email protected]> Reviewed-by: Palmer Dabbelt <[email protected]> Acked-by: Palmer Dabbelt <[email protected]> Reviewed-by: Kees Cook <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions