mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s4:torture:smb2: fix 'Use of uninitialised value of size 8' valgrind error.
smbtorture test smb2.streams.names.names generated the following valgrind trace. (../source4/torture/smb2/streams.c:791) testing stream names ==17238== Use of uninitialised value of size 8 ==17238== at 0x8F005C2: _samba_rijndaelEncrypt (rijndael-alg-fst.c:957) ==17238== by 0x8EFF24C: samba_AES_encrypt (aes.c:60) ==17238== by 0x8F01A74: aes_cmac_128_update (aes_cmac_128.c:151) ==17238== by 0xB0D11B7: smb2_signing_sign_pdu (smb2_signing.c:74) ==17238== by 0xB0D984A: smb2cli_req_compound_submit (smbXcli_base.c:3062) ==17238== by 0x5AFD5F5: smb2_transport_send (transport.c:237) ==17238== by 0x5B030F3: smb2_close_send (close.c:42) ==17238== by 0x5B0358A: smb2_close (close.c:78) ==17238== by 0x5B087B3: smb2_util_close (util.c:40) ==17238== by 0x51E480: test_stream_names (streams.c:1053) ==17238== by 0x48B452: wrap_simple_1smb2_test (smb2.c:52) ==17238== by 0x955368F: internal_torture_run_test (torture.c:442) ==17238== by 0x9553A6B: torture_run_test_restricted (torture.c:542) ==17238== by 0x26013F: run_matching (smbtorture.c:110) ==17238== by 0x260001: run_matching (smbtorture.c:95) ==17238== by 0x260001: run_matching (smbtorture.c:95) ==17238== by 0x260260: torture_run_named_tests (smbtorture.c:143) ==17238== by 0x261EDF: main (smbtorture.c:665) ==17238== ==17238== Use of uninitialised value of size 8 ==17238== at 0x8F005DE: _samba_rijndaelEncrypt (rijndael-alg-fst.c:958) ==17238== by 0x8EFF24C: samba_AES_encrypt (aes.c:60) ==17238== by 0x8F01A74: aes_cmac_128_update (aes_cmac_128.c:151) ==17238== by 0xB0D11B7: smb2_signing_sign_pdu (smb2_signing.c:74) ==17238== by 0xB0D984A: smb2cli_req_compound_submit (smbXcli_base.c:3062) ==17238== by 0x5AFD5F5: smb2_transport_send (transport.c:237) ==17238== by 0x5B030F3: smb2_close_send (close.c:42) ==17238== by 0x5B0358A: smb2_close (close.c:78) ==17238== by 0x5B087B3: smb2_util_close (util.c:40) ==17238== by 0x51E480: test_stream_names (streams.c:1053) ==17238== by 0x48B452: wrap_simple_1smb2_test (smb2.c:52) ==17238== by 0x955368F: internal_torture_run_test (torture.c:442) ==17238== by 0x9553A6B: torture_run_test_restricted (torture.c:542) ==17238== by 0x26013F: run_matching (smbtorture.c:110) ==17238== by 0x260001: run_matching (smbtorture.c:95) ==17238== by 0x260001: run_matching (smbtorture.c:95) ==17238== by 0x260260: torture_run_named_tests (smbtorture.c:143) ==17238== by 0x261EDF: main (smbtorture.c:665) ==17238== Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
b90f5f47dc
commit
37696e9bde
@ -841,6 +841,11 @@ static bool test_stream_names(struct torture_context *tctx,
|
||||
":?Stream*:$DATA"
|
||||
};
|
||||
|
||||
ZERO_STRUCT(h);
|
||||
ZERO_STRUCT(h1);
|
||||
ZERO_STRUCT(h2);
|
||||
ZERO_STRUCT(h3);
|
||||
|
||||
sname1 = talloc_asprintf(mem_ctx, "%s:%s", fname, "\x05Stream\n One");
|
||||
sname1b = talloc_asprintf(mem_ctx, "%s:", sname1);
|
||||
sname1c = talloc_asprintf(mem_ctx, "%s:$FOO", sname1);
|
||||
|
Loading…
Reference in New Issue
Block a user