1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/source3/passdb
Andreas Schneider 13d98c8fa6 s3:passdb: Fix memory leak caused by recursion of get_global_sam_sid()
Direct leak of 68 byte(s) in 1 object(s) allocated from:
    #0 0x7f4f39cdc03f in malloc (/lib64/libasan.so.8+0xdc03f) (BuildId: 3e1694ad218c99a8b1b69231666a27df63cf19d0)
    #1 0x7f4f36fbe427 in malloc_ ../../source3/lib/util_malloc.c:38
    #2 0x7f4f394b5e19 in pdb_generate_sam_sid ../../source3/passdb/machine_sid.c:90
    #3 0x7f4f394b5e19 in get_global_sam_sid ../../source3/passdb/machine_sid.c:211
    #4 0x7f4f394af366 in secrets_store_domain_sid ../../source3/passdb/machine_account_secrets.c:143
    #5 0x7f4f394b5eb5 in pdb_generate_sam_sid ../../source3/passdb/machine_sid.c:110
    #6 0x7f4f394b5eb5 in get_global_sam_sid ../../source3/passdb/machine_sid.c:211
    #7 0x7f4f394af366 in secrets_store_domain_sid ../../source3/passdb/machine_account_secrets.c:143
    #8 0x557a1f11d62c in net_setlocalsid ../../source3/utils/net.c:416
    #9 0x557a1f1c9972 in net_run_function ../../source3/utils/net_util.c:464
    #10 0x557a1f121129 in main ../../source3/utils/net.c:1372
    #11 0x7f4f34c281af in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Tue Jan 23 14:30:58 UTC 2024 on atb-devel-224
2024-01-23 14:30:58 +00:00
..
ABI
account_pol.c lib: relicense smb_strtoul(l) under LGPLv3 2020-08-03 22:21:02 +00:00
login_cache.c
lookup_sid.c s3:passdb: Also allow to handle UPNs in lookup_name_smbconf() 2022-04-26 20:16:33 +00:00
lookup_sid.h
machine_account_secrets.c s3:passdb: Fix memory leak caused by recursion of get_global_sam_sid() 2024-01-23 14:30:58 +00:00
machine_sid.c passdb: Use struct allocation 2020-01-30 12:27:40 +00:00
machine_sid.h
passdb.c s3:passdb: Fix code spelling 2023-07-19 09:58:37 +00:00
pdb_compat.c
pdb_get_set.c s3:passdb: Fix code spelling 2023-07-19 09:58:37 +00:00
pdb_interface.c s3:passdb: Do not leak memory if memcache add fails 2023-10-27 05:54:33 +00:00
pdb_ldap_schema.c
pdb_ldap_schema.h Fix a comment typo copied around 2020-08-17 19:35:38 +00:00
pdb_ldap_util.c Fix a comment typo copied around 2020-08-17 19:35:38 +00:00
pdb_ldap_util.h Fix a comment typo copied around 2020-08-17 19:35:38 +00:00
pdb_ldap.c s3:passdb: Fix code spelling 2023-10-25 22:23:37 +00:00
pdb_ldap.h s3:passdb: Fix code spelling 2023-07-19 09:58:37 +00:00
pdb_nds.c s3:passdb: Fix code spelling 2023-10-25 22:23:37 +00:00
pdb_nds.h Fix a comment typo copied around 2020-08-17 19:35:38 +00:00
pdb_samba_dsdb.c pdb: Slightly simplify pdb_samba_dsdb_set_trusteddom_pw() 2023-10-10 23:23:40 +00:00
pdb_secrets.c
pdb_secrets.h
pdb_smbpasswd.c s3:passdb: smbpasswd reset permissions only if not 0600 2024-01-18 10:28:19 +00:00
pdb_smbpasswd.h
pdb_tdb.c s3:passdb: Do not leak memory in pdb_tdb 2024-01-23 13:23:33 +00:00
pdb_tdb.h
pdb_util.c
py_passdb.c Use python.h from libreplace 2023-11-20 15:37:33 +00:00
secrets_lsa.c s3:passdb: Zero sensitive memory in lsa_secret_{set/get}_common() 2022-08-26 07:59:32 +00:00
secrets.c s3:passdb: Add missing newlines to logging messages 2023-08-08 04:39:38 +00:00
wscript_build smbdes: add des_crypt56_gnutls() using DES-CBC with zeroed IV 2019-12-10 00:30:30 +00:00