1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/source4/torture
Noel Power a5ce559a80 s4:torture:basic: fix valgrind 'Syscall param writev(vector[...])' error
running smbtorture test base.aliases.FINDFIRST aliases.FINDFIRST aliases
results in the following valgrind trace

==22639== Syscall param writev(vector[...]) points to uninitialised byte(s)
==22639==    at 0xFBA2C87: writev (in /lib64/libc-2.19.so)
==22639==    by 0x106CB033: writev_handler (async_sock.c:340)
==22639==    by 0xF67812A: ??? (in /usr/lib64/libtevent.so.0.9.26)
==22639==    by 0xF6765F6: ??? (in /usr/lib64/libtevent.so.0.9.26)
==22639==    by 0xF6727FC: _tevent_loop_once (in /usr/lib64/libtevent.so.0.9.26)
==22639==    by 0x5AE3400: smbcli_request_receive (rawrequest.c:416)
==22639==    by 0x5AE6019: smb_raw_write_recv (rawreadwrite.c:303)
==22639==    by 0x5AE63FD: smb_raw_write (rawreadwrite.c:344)
==22639==    by 0x9BE50CA: smbcli_write (clireadwrite.c:118)
==22639==    by 0x423672: findfirst_aliases (aliases.c:213)
==22639==    by 0x16B21D: wrap_simple_1smb_test (util_smb.c:856)
==22639==    by 0x955368F: internal_torture_run_test (torture.c:442)
==22639==    by 0x9553A6B: torture_run_test_restricted (torture.c:542)
==22639==    by 0x2600A4: run_matching (smbtorture.c:110)
==22639==    by 0x25FF66: run_matching (smbtorture.c:95)
==22639==    by 0x25FF66: run_matching (smbtorture.c:95)
==22639==    by 0x2601C5: torture_run_named_tests (smbtorture.c:143)
==22639==    by 0x261E44: main (smbtorture.c:665)
==22639==  Address 0x187dfd26 is 598 bytes inside a block of size 1,325 alloc'd
==22639==    at 0x4C29110: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==22639==    by 0xF464A73: _talloc_pooled_object (in /usr/lib64/libtalloc.so.2.1.5)
==22639==    by 0xF67366D: _tevent_req_create (in /usr/lib64/libtevent.so.0.9.26)
==22639==    by 0xB0D49FF: smb1cli_req_create (smbXcli_base.c:1322)
==22639==    by 0x5ADFAB7: smbcli_transport_setup_subreq (clitransport.c:254)
==22639==    by 0x5ADFC37: smbcli_transport_send (clitransport.c:326)
==22639==    by 0x5AE33C3: smbcli_request_send (rawrequest.c:400)
==22639==    by 0x5AE5FDD: smb_raw_write_send (rawreadwrite.c:289)
==22639==    by 0x5AE63E6: smb_raw_write (rawreadwrite.c:343)
==22639==    by 0x9BE50CA: smbcli_write (clireadwrite.c:118)
==22639==    by 0x423672: findfirst_aliases (aliases.c:213)
==22639==    by 0x16B21D: wrap_simple_1smb_test (util_smb.c:856)
==22639==    by 0x955368F: internal_torture_run_test (torture.c:442)
==22639==    by 0x9553A6B: torture_run_test_restricted (torture.c:542)
==22639==    by 0x2600A4: run_matching (smbtorture.c:110)
==22639==    by 0x25FF66: run_matching (smbtorture.c:95)
==22639==    by 0x25FF66: run_matching (smbtorture.c:95)
==22639==    by 0x2601C5: torture_run_named_tests (smbtorture.c:143)
==22639==    by 0x261E44: main (smbtorture.c:665)

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2016-04-25 10:35:15 +02:00
..
auth kerberos: Remove un-used event context argument from smb_krb5_init_context() 2014-04-28 02:24:57 +02:00
basic s4:torture:basic: fix valgrind 'Syscall param writev(vector[...])' error 2016-04-25 10:35:15 +02:00
dfs torture: change dfs tests now that we return a level 4 when level 4 is requested 2012-04-26 21:25:37 +02:00
dns s4-dns: dlz-bind: Add trailing '.' to all fqdn strings 2014-11-21 06:14:55 +01:00
drs Rename 'errors' to 'samba-errors' and make it public. 2016-01-13 07:47:04 +01:00
krb5 s4:torture/krb5: add a --option=torture:run_removedollar_test=true option to kdc-conon 2015-06-24 01:03:16 +02:00
ldap torture_ldap_sort: avoid segfault 2016-03-09 10:32:17 +01:00
ldb ldb torture: test ldb_unpack_data_only_attr_list 2015-12-17 03:23:21 +01:00
libnet s4:torture/libnet: add missing #include "torture/libnet/proto.h" 2014-04-02 09:03:45 +02:00
libnetapi s4/torture/libnetapi/libnetapi_user.c: fix typo 2016-03-04 18:08:21 +01:00
libsmbclient waf: restore libsmbclient handling. 2011-09-15 15:31:59 +02:00
local util/binsearch: macro for greater than or equal search 2016-03-09 10:32:16 +01:00
man docs: remove duplicate mention of "smbtorture" in smbtorture manpage. 2013-11-19 09:52:39 +01:00
nbench dlist: remove unneeded type argument from DLIST_ADD_END() 2016-02-06 21:48:17 +01:00
nbt s4-torture: fix gcc6 build warnings. 2016-02-06 21:48:18 +01:00
ndr ntlmssp.idl: MsAvRestrictions is MsvAvSingleHost now 2016-03-10 06:52:29 +01:00
ntp s4:torture/ntp: add missing #include "torture/ntp/proto.h" 2014-04-02 09:03:45 +02:00
rap s4:torture/rap/printing: check smbcli_rap_netprintqgetinfo() WERR status 2011-12-17 01:09:32 +01:00
raw CVE-2016-2111: s4:torture/raw: don't use ntlmv2 for dos connection in raw.samba3badpath 2016-04-12 19:25:24 +02:00
rpc s4:torture:rpc: fix valgrind 'Syscall param writev(vector[...])' valgrind error 2016-04-25 10:35:14 +02:00
smb2 s4:torture:smb2:rename.c: Fix file permissions. 2016-03-24 06:33:03 +01:00
tests selftest: Remove unused support for --exeext 2012-02-01 02:45:07 +01:00
unix lib: Convert callers of sid_blob_parse to sid_parse 2015-08-26 21:41:12 +02:00
vfs dlist: remove unneeded type argument from DLIST_ADD_END() 2016-02-06 21:48:17 +01:00
winbind s4:torture/winbind: add more debug output to samba4.winbind.struct.domain_info 2015-12-14 23:26:40 +01:00
gentest.c torture/gentest time_skew(): don't use labs() on unsigned NTTIME 2015-12-24 04:09:28 +01:00
locktest.c s4:torture/locktest: comment out unused code and avoid smbcli_nt_error() 2014-11-25 07:25:46 +01:00
masktest.c s4:torture: avoid argv related const warnings 2014-04-02 09:03:45 +02:00
shell.c s4:torture/shell: simplify cli_credentials_set_password() call 2013-08-05 17:48:03 +12:00
smbtorture.c s4:torture: avoid const warnings in smbtorture.c 2014-04-02 09:03:45 +02:00
smbtorture.h
torture.c Revert making public of the samba-module library. 2011-12-03 08:36:30 +01:00
util_smb.c dlist: remove unneeded type argument from DLIST_ADD_END() 2016-02-06 21:48:17 +01:00
util.h torture: Add a new w2k12 target 2013-09-05 13:46:10 -07:00
wscript_build waf: Only build the backupkey rpc test with AD DC enabled 2016-01-22 17:47:21 +01:00