]> git.ipfire.org Git - thirdparty/samba.git/commit
s3:smbd: Make sure struct security_ace is initialized
authorAndreas Schneider <asn@samba.org>
Thu, 20 Jun 2024 07:14:45 +0000 (09:14 +0200)
committerMartin Schwenke <martins@samba.org>
Sun, 30 Jun 2024 23:20:33 +0000 (23:20 +0000)
commit147861936320d98877d088a9bd36cb2243c98abe
treee920c47ab9b37e1c448eab61b11af27bd3d5b3c6
parentdf8d19e53b69e19698737c7ea405c7f66f9ce2fd
s3:smbd: Make sure struct security_ace is initialized

"Error: UNINIT (CWE-457):
samba-4.20.0rc2/source3/smbd/posix_acls.c:4778: var_decl: Declaring variable ""aces"" without initializer.
samba-4.20.0rc2/source3/smbd/posix_acls.c:4799: uninit_use_in_call: Using uninitialized value ""*aces"". Field ""aces->object"" is uninitialized when calling ""make_sec_acl"".
 4797|    idx++;
 4798|
 4799|->  new_dacl = make_sec_acl(ctx,
 4800|    NT4_ACL_REVISION,
 4801|    idx,"

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Martin Schwenke <mschwenke@ddn.com>
source3/smbd/posix_acls.c