1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/source3/libsmb
Joseph Sutton d53483a540 s3:libsmb: Fix array traversal (CID 1034683)
Commit 033185e2a1 changed the sentinel
value to an empty character array, but failed to update the traversal
code to match.

Commit 48a453996a then tried to fix the
situation, but did not do so correctly.

Fix this code by forgetting about sentinel values altogether.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2023-10-13 02:18:31 +00:00
..
ABI libsmbclient: Add smbc_[gs]etOptionPosixExtensions() 2023-10-12 16:55:34 +00:00
async_smb.c
auth_generic.c s3:libsmb: Check return code of cli_credentials_guess() 2021-06-29 02:19:35 +00:00
cli_smb2_fnum.c libsmb: Use cli_smb2_qpathinfo_send() for SMB_QUERY_FILE_ALT_NAME_INFO 2023-10-12 17:51:44 +00:00
cli_smb2_fnum.h libsmb: Use cli_smb2_qpathinfo_send() for SMB_QUERY_FILE_ALT_NAME_INFO 2023-10-12 17:51:44 +00:00
cliconnect.c libsmb: Use tevent_req_nterror() properly 2023-08-22 16:45:31 +00:00
clidfs.c smbclient: Always ask for SMB311 posix in negprot 2023-10-12 16:55:34 +00:00
clidgram.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
clidgram.h
clientgen.c libsmb: Adapt cli_echo_send() to modern conventions 2023-04-18 14:58:36 +00:00
clierror.c libsmb: Remove unused cli_is_dos_error() 2023-09-25 19:01:34 +00:00
clifile.c libsmb: Use cli_smb2_qpathinfo_send() for SMB_QUERY_FILE_ALT_NAME_INFO 2023-10-12 17:51:44 +00:00
clifsinfo.c libsmb: Pass NTTIME to interpret_long_date() 2023-10-04 20:31:36 +00:00
clilist.c libsmb: Pass NTTIME to interpret_long_date() 2023-10-04 20:31:36 +00:00
climessage.c libsmb: Use tevent_req_nterror() properly 2023-08-22 16:45:31 +00:00
clioplock.c libsmb: Use tevent_req_oom() where appropriate 2023-08-22 16:45:31 +00:00
cliprint.c libsmb: Remove a call to SMBC_errno() 2023-09-25 19:01:34 +00:00
cliquota.c s3/libsmb: clang: Fix 'Value stored during initialization is never read' 2019-08-28 03:06:42 +00:00
clirap.c libsmb: Use cli_smb2_qpathinfo_send() for SMB_QUERY_FILE_ALT_NAME_INFO 2023-10-12 17:51:44 +00:00
clirap.h libsmb: Add placeholder "mode" parameter to cli_qpathinfo2() 2023-10-12 16:55:34 +00:00
clireadwrite.c libsmb: Remove "trans_oob()" macro 2021-11-11 19:08:37 +00:00
clisecdesc.c libsmb: Make cli_set_security_descriptor() async 2020-11-16 19:53:45 +00:00
clisymlink.c libsmb: Pass "flags" through cli_close_send() and pylibsmb 2023-10-10 08:19:29 +00:00
clitrans.c
conncache.c
dsgetdcname.c dsgetdcname: Remove excess zero digits from literals 2023-09-14 21:35:29 +00:00
dsgetdcname.h s3-dsgetdcname: add dsgetonedcname() 2021-07-14 16:49:30 +00:00
errormap_wbc.c
errormap_wbc.h
errormap.c lib: Align integer types 2020-01-19 18:29:39 +00:00
libsmb_cache.c libsmb: Make setting errno safer in SMBC_add_cached_server() 2023-04-18 14:58:36 +00:00
libsmb_compat.c libsmb: Slightly simplify smbc_init() 2023-04-18 14:58:36 +00:00
libsmb_context.c libsmbclient: Add smbc_[gs]etOptionPosixExtensions() 2023-10-12 16:55:34 +00:00
libsmb_dir.c libsmb: Remove a call to SMBC_errno() 2023-09-25 19:01:34 +00:00
libsmb_file.c libsmbclient: Read the file type from the server with posix enabled 2023-10-12 16:55:34 +00:00
libsmb_misc.c libsmb: Remove SMBC_errno() 2023-09-25 19:01:34 +00:00
libsmb_path.c s3:libsmb: Add missing parenthesis to logging message 2023-08-08 04:39:38 +00:00
libsmb_printjob.c libsmb: Remove a call to SMBC_errno() 2023-09-25 19:01:34 +00:00
libsmb_server.c libsmb: Pass neg contexts through sync smbXcli_negprot_recv() 2023-09-25 19:59:17 +00:00
libsmb_setget.c libsmbclient: Add smbc_[gs]etOptionPosixExtensions() 2023-10-12 16:55:34 +00:00
libsmb_stat.c libsmb: Expand IS_DOS_* macros 2023-10-10 23:23:40 +00:00
libsmb_thread_impl.c s3:libsmb: Fix code spelling 2023-07-13 06:34:01 +00:00
libsmb_thread_posix.c
libsmb_xattr.c s3:libsmb: Fix array traversal (CID 1034683) 2023-10-13 02:18:31 +00:00
libsmb.h
namecache.c s3:libsmb: Fix code spelling 2023-07-13 06:34:01 +00:00
namequery_dc.c s3:libads: Allocate ADS_STRUCT under a talloc context 2022-06-27 15:50:30 +00:00
namequery.c libsmb: increase a debug level when site-aware DC lookup failed 2023-07-21 16:19:35 +00:00
namequery.h lib: Move sockaddr_storage_to_samba_sockaddr() to lib/ 2021-01-11 13:19:32 +00:00
nmblib.c s3:libsmb: Fix code spelling 2023-07-13 06:34:01 +00:00
nmblib.h s3:libsmb: move cli_set_message() to source3/libsmb/nmblib.c 2020-02-26 19:45:36 +00:00
passchange.c libsmb: Pass neg contexts through sync smbXcli_negprot_recv() 2023-09-25 19:59:17 +00:00
proto.h libsmb: Pass "flags" through cli_close_send() and pylibsmb 2023-10-10 08:19:29 +00:00
pylibsmb.c pylibsmb: Add SMB2_CLOSE_FLAGS_FULL_INFORMATION constant 2023-10-10 08:19:29 +00:00
samlogon_cache.c s3:winbind: Improve logging in samlogon_cache.c 2022-07-15 14:25:38 +00:00
samlogon_cache.h
smbclient.pc.in
smberr.c
smbsock_connect.c libsmb: Use tevent_req_nterror() properly 2023-08-22 16:45:31 +00:00
trusts_util.c s3:libsmb: Fix code spelling 2023-07-13 06:34:01 +00:00
unexpected.c
unexpected.h
wscript libsmbclient: Add smbc_[gs]etOptionPosixExtensions() 2023-10-12 16:55:34 +00:00