]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ecryptfs: Replace memcpy + manual NUL termination with strscpy
authorThorsten Blum <thorsten.blum@linux.dev>
Thu, 5 Feb 2026 12:51:00 +0000 (13:51 +0100)
committerTyler Hicks <code@tyhicks.com>
Thu, 26 Mar 2026 03:39:27 +0000 (22:39 -0500)
commitf7a1c0283f135833db164cc0fac8d422fed2079e
tree3b5e5d44f4685984d369945f710cee08d758bf9f
parent7d9ebf33d85317f3f258c627de51701e2bf7642d
ecryptfs: Replace memcpy + manual NUL termination with strscpy

Use strscpy() to copy the NUL-terminated '->token.password.signature'
and 'sig' to the destination buffers instead of using memcpy() followed
by manual NUL terminations.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Tyler Hicks <code@tyhicks.com>
fs/ecryptfs/debug.c
fs/ecryptfs/keystore.c