]> git.ipfire.org Git - thirdparty/samba.git/commit
s3:smbd: Initialize struct security_ace array
authorAndreas Schneider <asn@samba.org>
Tue, 16 Jul 2024 08:31:53 +0000 (10:31 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 18 Jul 2024 12:47:29 +0000 (12:47 +0000)
commitf124c2df928fc1eac8412303d894b714e05d1e1f
treea26654015a57fd4ca9e330d23b9448fdd2af7440
parentf7229d61ede14f6fd14b9e5dcb365ec772216e08
s3:smbd: Initialize struct security_ace array

"Error: UNINIT (CWE-457):
samba-4.20.0rc2/source3/smbd/posix_acls.c:4599: var_decl: Declaring variable ""aces"" without initializer.
samba-4.20.0rc2/source3/smbd/posix_acls.c:4676: uninit_use_in_call: Using uninitialized value ""*aces"". Field ""aces->object"" is uninitialized when calling ""make_sec_acl"".
 4674|    idx++;
 4675|
 4676|->  new_dacl = make_sec_acl(ctx,
 4677|    NT4_ACL_REVISION,
 4678|    idx,"

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
source3/smbd/posix_acls.c