1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/source3
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
..
auth s3:auth: Allow 'Unix Users' and 'Unix Groups' to create a local token 2023-12-01 08:06:44 +00:00
build
client s3/libsmb: reuse smbXcli_conn_have_posix() 2023-10-26 15:29:29 +00:00
exports
groupdb s3:groupdb: Add missing newline to logging message 2023-08-08 04:39:38 +00:00
include smbd: add a directory argument to safe_symlink_target_path() 2024-01-22 10:53:29 +00:00
intl
lib source3/lib: Properly log the change in capability 2024-01-20 18:43:10 +00:00
libads s3:libads: Fix memory leaks in ads_create_machine_acct() 2024-01-23 13:23:33 +00:00
libgpo/gpext
libnet s3:libnet: Remove always‐false comparison (CID 241309) 2023-10-13 02:18:31 +00:00
librpc smbXsrv.idl: add python bindings 2024-01-09 10:21:34 +00:00
libsmb Use python.h from libreplace 2023-11-20 15:37:33 +00:00
locale s3:utils: Fix code spelling 2023-08-08 04:39:38 +00:00
locking libcli/security: Rename dup_nt_token() -> security_token_duplicate() 2023-09-26 23:45:36 +00:00
modules vfs_default: allow disabling /proc/fds and RESOLVE_NO_SYMLINK at compile time 2024-01-22 10:53:29 +00:00
nmbd VERSION: move COPYRIGHT_STARTUP_MESSAGE as SAMBA_COPYRIGHT_STRING into version.h 2023-12-15 10:44:42 +00:00
param s3:param: Remove unnecessary use of discard_const_p() 2023-12-21 20:21:34 +00:00
passdb s3:passdb: Fix memory leak caused by recursion of get_global_sam_sid() 2024-01-23 14:30:58 +00:00
printing smbd: set fsp_flags.is_fsa to true on printer file handles 2024-01-08 15:53:36 +00:00
profile profile: Fix rusage reporting 2023-12-19 16:05:36 +00:00
registry libcli/security: Rename dup_nt_token() -> security_token_duplicate() 2023-09-26 23:45:36 +00:00
rpc_client s3:rpc_client: Remove unused rpccli_lsa_open_policy2() 2023-11-21 12:21:18 +00:00
rpc_server s3:rpc_server: Mark _lsa_CreateTrustedDomainEx as NOT_IMPLMENTED 2024-01-09 14:17:40 +00:00
rpcclient s3:rpcclient: Use dcerpc_lsa_open_policy_fallback() in cmd_lsarpc.c 2023-11-21 11:16:37 +00:00
script selftest: test listing trusted domains that includes an NT4 domain 2024-01-20 13:20:37 +00:00
selftest selftest: test listing trusted domains that includes an NT4 domain 2024-01-20 13:20:37 +00:00
services
smbd smbd: use dirfsp and atname in open_directory() 2024-01-22 12:00:56 +00:00
torture smbd: Give source3/smbd/dir.c its own header file 2023-12-19 16:05:36 +00:00
utils net: create creds for other domain 2024-01-20 13:20:37 +00:00
web
winbindd winbindd: fix listing trusted domains with NT trusts 2024-01-20 14:23:51 +00:00
.clang_complete
.dmallocrc
.indent.pro
Doxyfile
mainpage.dox
smbadduser.in
wscript vfs_ceph: use extra 'ceph_*at()' calls when available 2024-01-04 21:09:54 +00:00
wscript_build VERSION: move COPYRIGHT_STARTUP_MESSAGE as SAMBA_COPYRIGHT_STRING into version.h 2023-12-15 10:44:42 +00:00
wscript_configure_system_ncurses