1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/source3
Jeremy Allison 3634e20c76 s3: lib: nmbname: Ensure we limit the NetBIOS name correctly. CID: 1433607
Firstly, make the exit condition from the loop explicit (we must
never write into byte n, where n >= sizeof(name->name).

Secondly ensure exiting from the loop that n==MAX_NETBIOSNAME_LEN,
as this is the sign of a correct NetBIOS name encoding (RFC1002)
in order to properly read the NetBIOS name type (which is always
encoded in byte 16 == name->name[15]).

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>

Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Tue Nov 13 20:54:56 CET 2018 on sn-devel-144
2018-11-13 20:54:56 +01:00
..
auth lib: Remove gencache.h from proto.h 2018-10-19 18:52:50 +02:00
build source3/build/charset.py: update to handle waf 2.0.4 2018-09-05 06:37:23 +02:00
client s3:lib: Move popt_common_credentials to separate file 2018-09-07 17:26:14 +02:00
exports
groupdb passdb: Use dom_sid_str_buf 2018-11-09 22:42:29 +01:00
include lib: Remove unused tdb_trans_* functions 2018-10-27 21:24:24 +02:00
intl lib: Pass mem_ctx to lock_path() 2018-08-17 11:30:10 +02:00
lib lib: Use dom_sid_str_buf 2018-11-10 02:19:29 +01:00
libads lib: Remove gencache.h from proto.h 2018-10-19 18:52:50 +02:00
libgpo/gpext libgpo: Fix CID 1438462 Error handling issues (CHECKED_RETURN) 2018-08-22 00:58:41 +02:00
libnet s3:libads: Add net ads leave keep-account option 2018-07-30 07:34:11 +02:00
librpc smbd: Remove "share_mode_entry->lease" 2018-07-27 01:42:31 +02:00
libsmb s3: lib: nmbname: Ensure we limit the NetBIOS name correctly. CID: 1433607 2018-11-13 20:54:56 +01:00
locale pam_winbind: initial Turkish translation 2017-11-15 13:52:05 +01:00
locking leases: Streamline leases_db_key a bit 2018-10-03 04:11:59 +02:00
modules vfs_fruit: validation of writes on AFP_AfpInfo stream 2018-11-09 22:42:27 +01:00
nmbd debug: Use debuglevel_(get|set) function 2018-11-08 11:03:11 +01:00
param source4 smbd prefork: Increase default worklers to 4 2018-11-07 17:55:09 +01:00
passdb passdb: Use dom_sid_str_buf 2018-11-09 22:42:29 +01:00
printing tdb_unpack: Correct "len" arg for "B" format 2018-10-08 22:17:09 +02:00
profile lib: Pass mem_ctx to cache_path() 2018-08-17 14:28:51 +02:00
registry s3:registry: Avoid a double-free in reg_perfcount 2018-10-19 23:11:26 +02:00
rpc_client s3-rpc_client: Advertise Windows 7 client info 2018-09-08 01:43:27 +02:00
rpc_server lib: Remove gencache.h from proto.h 2018-10-19 18:52:50 +02:00
rpcclient s3-rpcclient: Use spoolss_init_spoolss_UserLevel1 in winspool cmds 2018-09-08 01:43:27 +02:00
script nsswitch: Run nsswitch thread test 2018-11-01 05:06:23 +01:00
selftest s3:selftest: also run smb2.session torture testsuite against ad_member 2018-11-13 11:13:03 +01:00
services srcctl3: Improve debug messages 2018-01-16 02:43:03 +01:00
smbd s3:smb2_sesssetup: check session_info security level before it gets talloc_move'd 2018-11-13 14:22:46 +01:00
torture wbclient: Send the client process name talking to winbind 2018-11-12 09:50:25 +01:00
utils gencache: Remove transaction-based tdb 2018-11-06 18:57:26 +01:00
web
winbindd winbindd: Fix crash when taking profiles 2018-11-12 20:20:52 +01:00
.clang_complete
.dmallocrc
.indent.pro
Doxyfile
mainpage.dox
smbadduser.in
wscript s3/wscript: fix flex detection 2018-09-07 11:37:23 +02:00
wscript_build selftest: Test hide new files timeout 2018-11-09 03:49:55 +01:00
wscript_configure_system_ncurses source3/wscript_configure_system_ncurses: update to handle waf 2.0.4 2018-09-05 06:37:24 +02:00