]> git.ipfire.org Git - thirdparty/samba.git/commit
examples:winexe: Fully initialize EXPLICIT_ACCESS
authorAndreas Schneider <asn@samba.org>
Tue, 16 Jul 2024 08:45:53 +0000 (10:45 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 18 Jul 2024 12:47:30 +0000 (12:47 +0000)
commita39cb60c3fb6a92719afe5637dd2317c4afb0f71
tree13b28779ba30f4cf6e2d0213778a08ea231a70db
parent2e1ac4bbf5b5a52bda106841be2e2ce3a5e3880c
examples:winexe: Fully initialize EXPLICIT_ACCESS

"Error: UNINIT (CWE-457):
samba-4.20.0rc2/examples/winexe/winexesvc.c:60: var_decl: Declaring variable ""ea"" without initializer.
samba-4.20.0rc2/examples/winexe/winexesvc.c:86: uninit_use_in_call: Using uninitialized value ""ea"". Field ""ea.Trustee.pMultipleTrustee"" is uninitialized when calling ""SetEntriesInAclA"".
   84|
   85|    /* Create a new ACL that contains the new ACEs */
   86|->  dwRes = SetEntriesInAcl(1, &ea, NULL, &pACL);
   87|    if (ERROR_SUCCESS != dwRes) {
   88|    dbg(""SetEntriesInAcl Error %lu\n"", GetLastError());"

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
examples/winexe/winexesvc.c