diff options
| author | Thorsten Blum <[email protected]> | 2025-08-06 01:03:49 +0000 |
|---|---|---|
| committer | Steve French <[email protected]> | 2025-08-07 23:23:12 +0000 |
| commit | 8e7d178d06e8937454b6d2f2811fa6a15656a214 (patch) | |
| tree | 17b6388d981aadc4fddfce43e33869c53fcee236 /tools/lib/api/debug.h | |
| parent | ksmbd: limit repeated connections from clients with the same IP (diff) | |
| download | kernel-8e7d178d06e8937454b6d2f2811fa6a15656a214.tar.gz kernel-8e7d178d06e8937454b6d2f2811fa6a15656a214.zip | |
smb: server: Fix extension string in ksmbd_extract_shortname()
In ksmbd_extract_shortname(), strscpy() is incorrectly called with the
length of the source string (excluding the NUL terminator) rather than
the size of the destination buffer. This results in "__" being copied
to 'extension' rather than "___" (two underscores instead of three).
Use the destination buffer size instead to ensure that the string "___"
(three underscores) is copied correctly.
Cc: [email protected]
Fixes: e2f34481b24d ("cifsd: add server-side procedures for SMB3")
Signed-off-by: Thorsten Blum <[email protected]>
Acked-by: Namjae Jeon <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'tools/lib/api/debug.h')
0 files changed, 0 insertions, 0 deletions
