summaryrefslogtreecommitdiff
path: root/source4/torture/raw/acls.c
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2016-04-18 17:02:29 +0100
committerAndreas Schneider <asn@cryptomilk.org>2016-04-25 10:35:15 +0200
commit04d70f5206c782de8b1746e6fb52698cfa337b76 (patch)
tree879826fd34b5f2faba631978ee66e013f99f194d /source4/torture/raw/acls.c
parentde590daa1c10d28908652c3bf8bb7f04069408b1 (diff)
downloadsamba-04d70f5206c782de8b1746e6fb52698cfa337b76.tar.gz
s4:torture:raw: fix 'use of uninitialised value of size 8' valgrind errors
smbtorture test raw.acls.create_file.create_file produces the following valgrind trace ==31783== Use of uninitialised value of size 8 ==31783== at 0xFB0B061: _itoa_word (in /lib64/libc-2.19.so) ==31783== by 0xFB0EAD2: vfprintf (in /lib64/libc-2.19.so) ==31783== by 0xFB36712: vasprintf (in /lib64/libc-2.19.so) ==31783== by 0xAEBB348: ndr_print_debug_helper (ndr.c:314) ==31783== by 0xAEB8ED1: ndr_print_uint16 (ndr_basic.c:1055) ==31783== by 0x3E591A: ndr_print_security_ace (ndr_security.c:539) ==31783== by 0x3E621A: ndr_print_security_acl (ndr_security.c:642) ==31783== by 0x3E7A3F: ndr_print_security_descriptor (ndr_security.c:890) ==31783== by 0xAEBB860: ndr_print_debug (ndr.c:409) ==31783== by 0x20C91F: verify_sd (acls.c:89) ==31783== by 0x20D8C3: test_nttrans_create_ext (acls.c:306) ==31783== by 0x20E3A8: test_nttrans_create_file (acls.c:381) ==31783== by 0x16B21D: wrap_simple_1smb_test (util_smb.c:856) ==31783== by 0x955368F: internal_torture_run_test (torture.c:442) ==31783== by 0x9553A6B: torture_run_test_restricted (torture.c:542) ==31783== by 0x260108: run_matching (smbtorture.c:110) ==31783== by 0x25FFCA: run_matching (smbtorture.c:95) ==31783== by 0x25FFCA: run_matching (smbtorture.c:95) ==31783== by 0x260229: torture_run_named_tests (smbtorture.c:143) ==31783== by 0x261EA8: main (smbtorture.c:665) ==31783== ==31783== Conditional jump or move depends on uninitialised value(s) ==31783== at 0xFB0B068: _itoa_word (in /lib64/libc-2.19.so) ==31783== by 0xFB0EAD2: vfprintf (in /lib64/libc-2.19.so) ==31783== by 0xFB36712: vasprintf (in /lib64/libc-2.19.so) ==31783== by 0xAEBB348: ndr_print_debug_helper (ndr.c:314) ==31783== by 0xAEB8ED1: ndr_print_uint16 (ndr_basic.c:1055) ==31783== by 0x3E591A: ndr_print_security_ace (ndr_security.c:539) ==31783== by 0x3E621A: ndr_print_security_acl (ndr_security.c:642) ==31783== by 0x3E7A3F: ndr_print_security_descriptor (ndr_security.c:890) ==31783== by 0xAEBB860: ndr_print_debug (ndr.c:409) ==31783== by 0x20C91F: verify_sd (acls.c:89) ==31783== by 0x20D8C3: test_nttrans_create_ext (acls.c:306) ==31783== by 0x20E3A8: test_nttrans_create_file (acls.c:381) ==31783== by 0x16B21D: wrap_simple_1smb_test (util_smb.c:856) ==31783== by 0x955368F: internal_torture_run_test (torture.c:442) ==31783== by 0x9553A6B: torture_run_test_restricted (torture.c:542) ==31783== by 0x260108: run_matching (smbtorture.c:110) ==31783== by 0x25FFCA: run_matching (smbtorture.c:95) ==31783== by 0x25FFCA: run_matching (smbtorture.c:95) ==31783== by 0x260229: torture_run_named_tests (smbtorture.c:143) ==31783== by 0x261EA8: main (smbtorture.c:665) ==31783== Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source4/torture/raw/acls.c')
-rw-r--r--source4/torture/raw/acls.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/torture/raw/acls.c b/source4/torture/raw/acls.c
index 360d9375424..dfeb13df560 100644
--- a/source4/torture/raw/acls.c
+++ b/source4/torture/raw/acls.c
@@ -238,6 +238,8 @@ static bool test_nttrans_create_ext(struct torture_context *tctx,
NTSTATUS (*delete_func)(struct smbcli_tree *, const char *) =
test_dir ? smbcli_rmdir : smbcli_unlink;
+ ZERO_STRUCT(ace);
+
if (!torture_setup_dir(cli, BASEDIR))
return false;