mirror of
https://github.com/samba-team/samba.git
synced 2025-03-10 12:58:35 +03:00
libgpo: Initialize struct security_ace array
"Error: UNINIT (CWE-457): samba-4.20.0rc2/libgpo/gpo_reg.c:708: var_decl: Declaring variable ""ace"" without initializer. samba-4.20.0rc2/libgpo/gpo_reg.c:755: uninit_use_in_call: Using uninitialized value ""*ace"". Field ""ace->object"" is uninitialized when calling ""make_sec_acl"". 753| mask, inherit_flags); 754| 755|-> theacl = make_sec_acl(mem_ctx, NT4_ACL_REVISION, 6, ace); 756| W_ERROR_HAVE_NO_MEMORY(theacl); 757|" Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
parent
03283dfae2
commit
79d2dbc057
@ -705,7 +705,7 @@ static WERROR gp_reg_generate_sd(TALLOC_CTX *mem_ctx,
|
||||
struct security_descriptor **sd,
|
||||
size_t *sd_size)
|
||||
{
|
||||
struct security_ace ace[6];
|
||||
struct security_ace ace[6] = {};
|
||||
uint32_t mask;
|
||||
|
||||
struct security_acl *theacl = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user