mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 01:32:21 +02:00
derived_buf is guaranteed to be HASH_SIZE - and it is more than enough. The strscpy() degenerates into an memcpy() (as did the strcpy()). Do the same for the associated "ENC_KEY" copy. Removes a possibly unbounded strcpy(). Signed-off-by: David Laight <david.laight.linux@gmail.com> Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org> Link: https://lore.kernel.org/r/20260606202633.5018-9-david.laight.linux@gmail.com Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org> |
||
|---|---|---|
| .. | ||
| ecryptfs_format.c | ||
| ecryptfs_format.h | ||
| encrypted.c | ||
| encrypted.h | ||
| Makefile | ||
| masterkey_trusted.c | ||