* [PATCH] ecryptfs: Drop redundant NUL termination in ecryptfs_parse_tag_70_packet
@ 2025-11-20 21:45 Thorsten Blum
0 siblings, 0 replies; only message in thread
From: Thorsten Blum @ 2025-11-20 21:45 UTC (permalink / raw)
To: Tyler Hicks, Christian Brauner, Eric Biggers, Ard Biesheuvel
Cc: Thorsten Blum, ecryptfs, linux-kernel
ecryptfs_to_hex() already NUL-terminates ->fnek_sig_hex. Drop the manual
NUL termination.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
fs/ecryptfs/keystore.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/fs/ecryptfs/keystore.c b/fs/ecryptfs/keystore.c
index b5204ab3150d..87990c0d4e2d 100644
--- a/fs/ecryptfs/keystore.c
+++ b/fs/ecryptfs/keystore.c
@@ -908,7 +908,6 @@ ecryptfs_parse_tag_70_packet(char **filename, size_t *filename_size,
(*packet_size) += s->packet_size_len;
ecryptfs_to_hex(s->fnek_sig_hex, &data[(*packet_size)],
ECRYPTFS_SIG_SIZE);
- s->fnek_sig_hex[ECRYPTFS_SIG_SIZE_HEX] = '\0';
(*packet_size) += ECRYPTFS_SIG_SIZE;
s->cipher_code = data[(*packet_size)++];
rc = ecryptfs_cipher_code_to_string(s->cipher_string, s->cipher_code);
--
2.51.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-11-20 21:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-20 21:45 [PATCH] ecryptfs: Drop redundant NUL termination in ecryptfs_parse_tag_70_packet Thorsten Blum
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox