1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
samba-mirror/source3/param
Andrew Walker 5b19288949 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
2022-12-20 18:49:54 +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 2022-12-20 18:49:54 +00:00
loadparm.h param: Add "smb3 unix extensions" 2022-09-02 13:31:38 +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 lib: Add lp_allow_local_address() 2022-11-10 07:27:31 +00:00
test_lp_load.c s3/param: Check return of talloc_strdup 2022-10-17 18:46:29 +00:00
util.c
wscript_build s3:rpc_server: Activate samba-dcerpcd 2021-12-10 14:02:30 +00:00