summaryrefslogtreecommitdiff
path: root/tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2026-02-26 23:15:22 +0100
committerSteve French <stfrench@microsoft.com>2026-02-27 10:19:54 -0600
commitf505a45776d149632e3bd0b87f0da1609607161a (patch)
treef8f9fded8f8049720141c9afd6d7d8396937821a /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
parent2f37dc436d4e61ff7ae0b0353cf91b8c10396e4d (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 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions