mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
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>
This commit is contained in:
parent
f7229d61ed
commit
f124c2df92
@ -4596,7 +4596,7 @@ static NTSTATUS make_default_acl_posix(TALLOC_CTX *ctx,
|
||||
{
|
||||
struct dom_sid owner_sid, group_sid;
|
||||
size_t size = 0;
|
||||
struct security_ace aces[4];
|
||||
struct security_ace aces[4] = {};
|
||||
uint32_t access_mask = 0;
|
||||
mode_t mode = psbuf->st_ex_mode;
|
||||
struct security_acl *new_dacl = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user