1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/libcli/smb
Andreas Schneider 46142d8398 libcli:smb2: Use talloc NULL context if we don't have a stackframe
If we execute this code from python we don't have a talloc stackframe
around and segfault with talloc_tos().

To fix the crash we use the NULL context as we take care for freeing the
memory as soon as possible.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2020-08-19 16:22:40 +00:00
..
read_smb.c libcli/smb: use tevent_req_received(req) in read_smb_recv() 2015-06-12 17:08:18 +02:00
read_smb.h
smb1cli_close.c
smb1cli_create.c libcli/smb: move {smb,trans2}_bytes_push_{str,bytes}() to common code 2016-11-15 11:00:26 +01:00
smb1cli_echo.c
smb1cli_read.c libcli/smb: correctly handle STATUS_BUFFER_OVERFLOW in smb1cli_readx* 2015-12-01 00:38:23 +01:00
smb1cli_session.c libcli/smb: clang: Fix 'value stored to 'p' is never read' 2019-07-11 04:08:13 +00:00
smb1cli_trans.c libcli smb smb1cli_trans: fix ubsan warning 2019-10-16 18:00:31 +00:00
smb1cli_write.c
smb2_constants.h libsmb: Add posix create context definition 2020-02-07 21:01:30 +00:00
smb2_create_blob.c libsmb: Add smb2_create_blob_remove() 2020-02-07 21:01:31 +00:00
smb2_create_blob.h libsmb: Add smb2_create_blob_remove() 2020-02-07 21:01:31 +00:00
smb2_create_ctx.h libsmb: Fix a typo 2020-01-30 12:27:40 +00:00
smb2_lease.c Revert "libcli/smb: mask off SMB2_LEASE_FLAG_PARENT_LEASE_KEY_SET for version 1" 2014-11-27 16:45:05 +01:00
smb2_lease.h libcli/smb: Add smb2_lease_equal() which compares client_guids and keys. 2014-11-07 22:41:47 +01:00
smb2_lock.h libsmb: Make "struct smb2_lock_element" generally usable 2019-04-01 17:58:17 +00:00
smb2_negotiate_context.c libcli: Align integer types 2020-03-10 23:08:19 +00:00
smb2_negotiate_context.h libcli: Pass buf/len to smb2_negotiate_context_add 2019-02-25 21:07:22 +01:00
smb2_posix.c smbd: Add make_smb2_posix_create_ctx() 2020-02-07 21:01:31 +00:00
smb2_posix.h smbd: Add make_smb2_posix_create_ctx() 2020-02-07 21:01:31 +00:00
smb2_signing.c libcli:smb2: Use talloc NULL context if we don't have a stackframe 2020-08-19 16:22:40 +00:00
smb2_signing.h libcli:smb: Don't use forward declartions for GnuTLS typedefs 2020-02-07 13:48:27 +00:00
smb2cli_close.c
smb2cli_create.c libcli: Add tevent_req_received() calls to smb2cli_create_recv() 2020-06-15 17:59:39 +00:00
smb2cli_echo.c
smb2cli_flush.c
smb2cli_ioctl.c libcli/smb: make sure we have a body size of 0x31 before dereferencing an ioctl response 2015-12-01 00:38:23 +01:00
smb2cli_notify.c libcli: Make smb2cli_notify_send cancellable 2018-11-21 16:53:41 +01:00
smb2cli_query_directory.c libcli/smb: outbuf length is a IVAL ie a uint32_t 2017-01-31 04:34:29 +01:00
smb2cli_query_info.c libcli/smb: correctly handle STATUS_BUFFER_OVERFLOW in smb2cli_query_info* 2015-12-01 00:38:23 +01:00
smb2cli_read.c libcli/smb: correctly handle STATUS_BUFFER_OVERFLOW in smb2cli_read* 2015-12-01 00:38:23 +01:00
smb2cli_session.c
smb2cli_set_info.c
smb2cli_tcon.c
smb2cli_write.c
smb_common.h libsmb: Make "struct smb2_lock_element" generally usable 2019-04-01 17:58:17 +00:00
smb_constants.h libcli/smb: define FSCTL_SMBTORTURE_FORCE_UNACKED_TIMEOUT 2020-07-08 15:54:38 +00:00
smb_seal.c libcli:smb: Use #ifdef instead of #if for config.h definitions 2018-11-28 23:19:22 +01:00
smb_seal.h
smb_signing.c lib/crypto: move gnutls error wrapper to own subsystem 2019-06-27 12:54:22 +00:00
smb_signing.h libcli:smb: Return NTSTATUS for smb_key_derivation() 2019-05-21 00:03:21 +00:00
smb_unix_ext.h libcli/smb: add define SMB_ENCRYPTION_GSSAPI for CIFS encryption type 2016-01-22 07:52:21 +01:00
smb_util.h libsmb: Add required #includes to smb_util.h 2020-02-07 21:01:30 +00:00
smbXcli_base.c libcli: Use NT_STATUS_PENDING instead of STATUS_PENDING 2020-06-22 12:07:38 +00:00
smbXcli_base.h libcli/smb: s/smbXcli_session_copy/smbXcli_session_shallow_copy 2019-06-12 12:42:26 +00:00
test_smb1cli_session.c Fix uClibc build on 64bit platforms by including stdint.h 2018-08-24 17:22:09 +02:00
tstream_smbXcli_np.c tstream: Fix CID 1167981 Unchecked return value 2018-04-16 19:09:56 +02:00
tstream_smbXcli_np.h
util.c libcli/smb: add smb_protocol_types_string() 2017-06-22 13:07:40 +02:00
wscript smbd: Add make_smb2_posix_create_ctx() 2020-02-07 21:01:31 +00:00