diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2026-02-26 23:15:22 +0100 |
|---|---|---|
| committer | Steve French <stfrench@microsoft.com> | 2026-02-27 10:19:54 -0600 |
| commit | f505a45776d149632e3bd0b87f0da1609607161a (patch) | |
| tree | f8f9fded8f8049720141c9afd6d7d8396937821a /Documentation/admin-guide/blockdev | |
| parent | 2f37dc436d4e61ff7ae0b0353cf91b8c10396e4d (diff) | |
smb: client: Use snprintf in cifs_set_cifscreds
Replace unbounded sprintf() calls with the safer snprintf(). Avoid using
magic numbers and use strlen() to calculate the key descriptor buffer
size. Save the size in a local variable and reuse it for the bounded
snprintf() calls. Remove CIFSCREDS_DESC_SIZE.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Acked-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'Documentation/admin-guide/blockdev')
0 files changed, 0 insertions, 0 deletions
