mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3: libsmb: Fix error where short name length was read as 2 bytes, should be 1.
Reported by Thomas Dvorachek <tdvorachek@yahoo.com> from a Windows 10 server. Confirmed in MS-CIFS 2.2.8.1.7. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11822 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Apr 6 03:46:55 CEST 2016 on sn-devel-144
This commit is contained in:
parent
6eba42f927
commit
f63b9a73b0
@ -186,7 +186,7 @@ static size_t interpret_long_filename(TALLOC_CTX *ctx,
|
||||
namelen = IVAL(p,0);
|
||||
p += 4;
|
||||
p += 4; /* EA size */
|
||||
slen = SVAL(p, 0);
|
||||
slen = CVAL(p, 0);
|
||||
if (slen > 24) {
|
||||
/* Bad short name length. */
|
||||
return pdata_end - base;
|
||||
|
Loading…
Reference in New Issue
Block a user