1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-07 17:18:11 +03:00
samba-mirror/source3/param
Andrew Walker 810ae90aa6 s3:params:lp_do_section - protect against NULL deref
iServiceIndex may indicate an empty slot in the ServicePtrs
array. In this case, lpcfg_serivce_ok(ServicePtrs[iServiceIndex])
may trigger a NULL deref and crash. Skipping the check
here will cause a scan of the array in add_a_service() and the
NULL slot will be used safely.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15267

Signed-off-by: Andrew Walker <awalker@ixsystems.com>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Dec 20 18:49:54 UTC 2022 on sn-devel-184

(cherry picked from commit 5b19288949)
2023-01-03 18:21:10 +00:00
..
loadparm_ctx.c lib: Remove init_names() 2021-03-16 17:09:32 +00:00
loadparm.c s3:params:lp_do_section - protect against NULL deref 2023-01-03 18:21:10 +00:00
loadparm.h lib:param: Add 'client use kerberos' config parameter 2021-04-28 03:43:34 +00:00
pyparam_util.c s3: Add s3 net python bindings 2021-04-21 20:51:31 +00:00
pyparam.c Fix clang 9 missing-field-initializer warnings 2020-05-08 09:31:31 +00:00
pyparam.h s3: Add s3 net python bindings 2021-04-21 20:51:31 +00:00
service.c printing: Introduce printer_list_printername_exists() 2021-03-16 17:09:31 +00:00
test_lp_load.c s3/param: Check return of talloc_strdup 2022-10-19 08:39:17 +00:00
util.c Change all uses of uint32/16/8 in proto.h to uint32_t/16_t/8_t. 2015-04-29 23:42:20 +02:00
wscript_build s3:rpc_server: Activate samba-dcerpcd 2021-12-10 14:02:30 +00:00