Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions security/keys/encrypted-keys/ecryptfs_format.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ int ecryptfs_fill_auth_tok(struct ecryptfs_auth_tok *auth_tok,
auth_tok->token_type = ECRYPTFS_PASSWORD;
strncpy((char *)auth_tok->token.password.signature, key_desc,
ECRYPTFS_PASSWORD_SIG_SIZE);
/* Ensure signature string is null terminated as strncpy may not */
auth_tok->token.password.signature[ECRYPTFS_PASSWORD_SIG_SIZE] = '\0';
auth_tok->token.password.session_key_encryption_key_bytes =
ECRYPTFS_MAX_KEY_BYTES;
/*
Expand Down