The Samba-Bugzilla – Attachment 9221 Details for
Bug 10145
Samba SMB2 client code reads the wrong short name length in a directory listing reply.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
git-am fix from master for 4.1.0
0001-s3-libsmb-The-short-name-length-is-only-a-one-byte-f.patch (text/plain), 1.12 KB, created by
Jeremy Allison
on 2013-09-17 18:14:03 UTC
(
hide
)
Description:
git-am fix from master for 4.1.0
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2013-09-17 18:14:03 UTC
Size:
1.12 KB
patch
obsolete
>From 1c41feb7893ae4a4f42c035f3c83f8b2950b7816 Mon Sep 17 00:00:00 2001 >From: Jeremy Allison <jra@samba.org> >Date: Mon, 16 Sep 2013 19:16:52 -0700 >Subject: [PATCH] s3: libsmb : The short name length is only a one byte field. > >The next byte is "undefined" and some vendors set this to 0xff >(discovered in SNIA SDC lab tests). > >Signed-off-by: Jeremy Allison <jra@samba.org> >Reviewed-by: Stefan Metzmacher <metze@samba.org> > >Autobuild-User(master): Stefan Metzmacher <metze@samba.org> >Autobuild-Date(master): Tue Sep 17 12:27:18 CEST 2013 on sn-devel-104 >--- > source3/libsmb/cli_smb2_fnum.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/source3/libsmb/cli_smb2_fnum.c b/source3/libsmb/cli_smb2_fnum.c >index 18b03f3..3253f9d 100644 >--- a/source3/libsmb/cli_smb2_fnum.c >+++ b/source3/libsmb/cli_smb2_fnum.c >@@ -412,7 +412,7 @@ static NTSTATUS parse_finfo_id_both_directory_info(uint8_t *dir_data, > if (namelen > (dir_data_length - 104)) { > return NT_STATUS_INFO_LENGTH_MISMATCH; > } >- slen = SVAL(dir_data + 68, 0); >+ slen = CVAL(dir_data + 68, 0); > if (slen > 24) { > return NT_STATUS_INFO_LENGTH_MISMATCH; > } >-- >1.8.1.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
metze
:
review+
Actions:
View
Attachments on
bug 10145
: 9221