1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/source3/smbd
Jeremy Allison 03841f9e44 Fix bug #7698 - Assert causes smbd to panic on invalid NetBIOS session request.
Found by the CodeNomicon test suites at the SNIA plugfest.

http://www.codenomicon.com/

If an invalid NetBIOS session request is received the code in name_len() in
libsmb/nmblib.c can hit an assert.

Re-write name_len() and name_extract() to use "buf/len" pairs and
always limit reads.

Jeremy.
2010-09-26 03:01:03 -07:00
..
aio.c s3: use monotonic clock for aio timeout 2010-09-07 20:29:13 +02:00
avahi_register.c
blocking.c s3: Make srv_send_smb take an sconn instead of a sock fd 2010-08-24 21:06:41 +02:00
close.c s3: Remove smbd_messaging_context() from send_stat_cache_delete_message() 2010-08-07 13:16:48 +02:00
conn.c s3: Fix a segfault in the printer code using create_conn_struct 2010-08-30 23:06:32 +02:00
connection.c s3-build: use dbwrap.h only where needed. 2010-08-26 00:25:55 +02:00
dfree.c
dir.c s3: Simplify (bool != True) to !bool 2010-04-24 10:50:12 +02:00
dmapi.c
dnsregister.c
dosmode.c s3: Remove use of iconv_convenience. 2010-05-18 11:45:31 +02:00
error.c Rename reply_doserror() -> reply_force_doserror(). 2009-12-21 11:16:38 -08:00
fake_file.c s3-build: only include "fake_file.h" where needed. 2010-08-26 00:20:28 +02:00
file_access.c s3-security: use shared SECINFO_DACL define. 2010-06-03 11:00:12 +02:00
fileio.c Fix bug #7693 - smbd changing mode of files on rename 2010-09-22 12:26:13 -07:00
filename_util.c s3: Remove debug_ctx() 2009-11-03 11:30:00 +01:00
filename.c Add check missing from previous patch after talloc_strdup(). 2010-09-10 23:33:18 -07:00
files.c s3-smbd: Fixed indent. 2010-08-13 12:20:10 -04:00
globals.c s3-build: only include memcache.h where needed. 2010-08-26 00:20:28 +02:00
globals.h s3:auth Remove NT_USER_TOKEN 2010-09-11 18:46:06 +10:00
ipc.c s3: Make srv_send_smb take an sconn instead of a sock fd 2010-08-24 21:06:41 +02:00
lanman.c s3-rpc_server: Moved ncacn_np declarations in common header file. 2010-09-15 12:53:42 +02:00
mangle_hash2.c s3-build: include mangle.h only where needed. 2010-08-26 00:20:29 +02:00
mangle_hash.c s3-build: include mangle.h only where needed. 2010-08-26 00:20:29 +02:00
mangle.c s3-build: include mangle.h only where needed. 2010-08-26 00:20:29 +02:00
message.c s3: Protect against an invalid bcc in SMBsendtxt 2010-01-17 17:26:39 +01:00
msdfs.c s3-msdfs: Make auth_serversupplied_info const. 2010-09-09 16:00:08 +02:00
negprot.c s3: Lift talloc_autofree_context() from make_auth_context_subsystem() 2010-09-26 01:12:37 +02:00
noquotas.c
notify_inotify.c s3: only include gen_ndr headers where needed. 2010-05-06 00:22:59 +02:00
notify_internal.c s3-build: use dbwrap.h only where needed. 2010-08-26 00:25:55 +02:00
notify.c s3-notify: use autogenerated FILE_NOTIFY_INFORMATION marshalling in smbd. 2010-07-07 13:54:57 +02:00
ntquotas.c s3:dom_sid Global replace of DOM_SID with struct dom_sid 2010-05-21 10:39:59 +02:00
nttrans.c Fix all sid_parse returns to be checked. Tidy up some checks and error 2010-09-15 15:40:15 -07:00
open.c s3:auth Remove NT_USER_TOKEN 2010-09-11 18:46:06 +10:00
oplock_irix.c s3: Remove procid_self() from irix_oplocks_read_fde_handler() 2010-07-05 11:06:29 +02:00
oplock_linux.c s3: Remove smbd_messaging_context() from linux_oplock_signal_handler() 2010-07-05 11:06:28 +02:00
oplock_onefs.c Be more forgiving on client oplock break failure (as Windows does). Remove a global. 2010-05-13 11:33:02 -07:00
oplock.c s3: Make srv_send_smb take an sconn instead of a sock fd 2010-08-24 21:06:41 +02:00
password.c s3: Remove smbd_server_fd() from session_claim 2010-08-17 22:52:03 +02:00
perfcount.c s3: Make g_smb_perfcount_handlers static 2010-06-14 12:06:52 +02:00
pipes.c s3: Make srv_send_smb take an sconn instead of a sock fd 2010-08-24 21:06:41 +02:00
posix_acls.c s3-util_sid: use shared dom_sid_compare_auth and dom_sid_equal_X functions. 2010-09-20 14:04:37 -07:00
process.c Fix bug #7698 - Assert causes smbd to panic on invalid NetBIOS session request. 2010-09-26 03:01:03 -07:00
quotas.c s3:smbd: add nfs quota support to the linux-non-sysquota code 2010-08-25 14:05:51 +02:00
reply.c Fix bug #7698 - Assert causes smbd to panic on invalid NetBIOS session request. 2010-09-26 03:01:03 -07:00
seal.c Add approriate TALLOC_CTX's thoughout the spnego code. No more implicit NULL contexts. 2010-07-20 16:17:58 -07:00
sec_ctx.c s3:auth Remove NT_USER_TOKEN 2010-09-11 18:46:06 +10:00
server_exit.c s3-auth: Simplify how we free the auth_context 2010-07-19 14:20:00 +10:00
server_reload.c s3: Lift smbd_server_fd from reload_services() 2010-08-18 11:18:21 +02:00
server.c s3: Remove talloc_autofree_context() from serverid_parent_init() 2010-09-26 03:29:28 +02:00
service.c s3-auth Rename NT_USER_TOKEN user_sids -> sids 2010-08-31 10:20:14 +10:00
session.c s3-build: use dbwrap.h only where needed. 2010-08-26 00:25:55 +02:00
sesssetup.c s3: Avoid an explicit ZERO_STRUCT 2010-09-26 01:12:37 +02:00
share_access.c s3-auth Change struct nt_user_token -> struct security_token 2010-09-11 18:46:05 +10:00
signing.c s3-build: only include smb_signing.h where needed. 2010-08-18 09:20:13 +02:00
smb2_break.c (Finally) fix bug #7158 - SMB2 connection resets during IOZone tests from 64-bit Vista client 2010-05-19 19:28:26 -07:00
smb2_close.c (Finally) fix bug #7158 - SMB2 connection resets during IOZone tests from 64-bit Vista client 2010-05-19 19:28:26 -07:00
smb2_create.c s3-smbd: Migrated to new spoolss functions for printing. 2010-07-27 10:27:13 -04:00
smb2_find.c (Finally) fix bug #7158 - SMB2 connection resets during IOZone tests from 64-bit Vista client 2010-05-19 19:28:26 -07:00
smb2_flush.c (Finally) fix bug #7158 - SMB2 connection resets during IOZone tests from 64-bit Vista client 2010-05-19 19:28:26 -07:00
smb2_getinfo.c s3:Fix a bogus uninitialized variable warning 2010-07-05 11:06:23 +02:00
smb2_glue.c s3: Remove a direct reference to smbd_server_conn 2010-08-08 16:03:15 +02:00
smb2_ioctl.c (Finally) fix bug #7158 - SMB2 connection resets during IOZone tests from 64-bit Vista client 2010-05-19 19:28:26 -07:00
smb2_keepalive.c libcli: move some common SMB and SMB2 stuff into libcli/smb/ 2009-08-12 18:28:32 +02:00
smb2_lock.c s3: Remove procid_self() from cancel_pending_lock_requests_by_fid_smb2() 2010-07-05 11:06:31 +02:00
smb2_negprot.c Move the addition of the 16 byte guid out of spnego_gen_negTokenInit() and 2010-07-19 16:45:16 -07:00
smb2_notify.c s3: change_notify_reply() does not need its "conn" argument 2010-06-12 15:42:55 +02:00
smb2_read.c Implement AIO in SMB2. Doesn't allow cancel calls yet (to be added). 2010-06-10 13:20:37 -07:00
smb2_server.c s3: Fix some uninitialized variable warnings 2010-08-30 15:57:14 +02:00
smb2_sesssetup.c s3-smbd: use make_server_info_krb5() in smb2 too. 2010-08-30 14:24:46 +02:00
smb2_setinfo.c Don't rely on the underlying ACL modules to enforce share level 2010-09-08 20:54:38 -07:00
smb2_signing.c libcli: move some common SMB and SMB2 stuff into libcli/smb/ 2009-08-12 18:28:32 +02:00
smb2_tcon.c s3: Fix some uninitialized variable warnings 2010-08-30 15:57:14 +02:00
smb2_write.c Implement AIO in SMB2. Doesn't allow cancel calls yet (to be added). 2010-06-10 13:20:37 -07:00
srvstr.c
statcache.c s3-build: only include memcache.h where needed. 2010-08-26 00:20:28 +02:00
statvfs.c
trans2.c s3-auth Rename NT_USER_TOKEN user_sids -> sids 2010-08-31 10:20:14 +10:00
uid.c s3: Remove talloc_autofree_context() from change_to_guest() 2010-09-26 03:29:29 +02:00
utmp.c
vfs.c Fix bug 7409 - Thousands of reduce_name: couldn't get realpath. 2010-09-13 16:54:21 -07:00