1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/source4/libnet
Noel Power 409cd516ca s4:libnet: fix 'Syscall param writev(vector[...])' valgrind error
running smbtorture rpc.dfs.netdfs.StdRoot yields the following valgrind trace

==18861== Syscall param writev(vector[...]) points to uninitialised byte(s)
==18861==    at 0xFBA2C87: writev (in /lib64/libc-2.19.so)
==18861==    by 0x106CB033: writev_handler (async_sock.c:340)
==18861==    by 0xF67812A: ??? (in /usr/lib64/libtevent.so.0.9.26)
==18861==    by 0xF6765F6: ??? (in /usr/lib64/libtevent.so.0.9.26)
==18861==    by 0xF6727FC: _tevent_loop_once (in /usr/lib64/libtevent.so.0.9.26)
==18861==    by 0xF673ACE: tevent_req_poll (in /usr/lib64/libtevent.so.0.9.26)
==18861==    by 0x5D19325: tevent_req_poll_ntstatus (tevent_ntstatus.c:109)
==18861==    by 0x88B2E0D: dcerpc_binding_handle_call (binding_handle.c:556)
==18861==    by 0xBC6D0D2: dcerpc_srvsvc_NetShareDel_r (ndr_srvsvc_c.c:4272)
==18861==    by 0x9786C0C: libnet_DelShare (libnet_share.c:195)
==18861==    by 0x2E0174: test_NetShareDel (dfs.c:103)
==18861==    by 0x2E126F: test_cleanup_stdroot (dfs.c:488)
==18861==  Address 0x18869b46 is 598 bytes inside a block of size 1,325 alloc'd
==18861==    at 0x4C29110: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==18861==    by 0xF464A73: _talloc_pooled_object (in /usr/lib64/libtalloc.so.2.1.5)
==18861==    by 0xF67366D: _tevent_req_create (in /usr/lib64/libtevent.so.0.9.26)
==18861==    by 0xB0D49FF: smb1cli_req_create (smbXcli_base.c:1322)
==18861==    by 0xB0E1E6D: smb1cli_trans_send (smb1cli_trans.c:512)
==18861==    by 0xB0ED47D: tstream_smbXcli_np_readv_trans_start (tstream_smbXcli_np.c:901)
==18861==    by 0xB0EC847: tstream_smbXcli_np_writev_write_next (tstream_smbXcli_np.c:578)
==18861==    by 0xB0EC4D7: tstream_smbXcli_np_writev_send (tstream_smbXcli_np.c:505)
==18861==    by 0xC259DFA: tstream_writev_send (tsocket.c:695)
==18861==    by 0xC25AD64: tstream_writev_queue_trigger (tsocket_helpers.c:513)
==18861==    by 0xF673023: tevent_common_loop_immediate (in /usr/lib64/libtevent.so.0.9.26)
==18861==    by 0xF677EED: ??? (in /usr/lib64/libtevent.so.0.9.26)
==18861==

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:14 +02:00
..
composite.h
groupinfo.c s4:libnet: let libnet_rpc_groupinfo() take tevent_context/dcerpc_binding_handle 2014-01-16 16:22:51 +01:00
groupinfo.h
groupman.c s4:libnet: remove unused libnet_rpc_groupdel* code 2014-01-16 16:22:51 +01:00
groupman.h s4:libnet: remove unused libnet_rpc_groupdel* code 2014-01-16 16:22:51 +01:00
libnet_become_dc.c Order switch statements 2014-07-07 07:47:44 +02:00
libnet_become_dc.h
libnet_domain.c Fix an empty if statement. 2014-05-05 20:19:13 +02:00
libnet_domain.h
libnet_export_keytab.c s4/libnet: fix exporting to keytab by SPN 2016-04-25 10:35:14 +02:00
libnet_export_keytab.h
libnet_group.c s4:libnet: let libnet_rpc_groupadd_send() take tevent_context/dcerpc_binding_handle 2014-01-16 16:22:51 +01:00
libnet_group.h
libnet_join.c s4:libnet: make use of dcerpc_secondary_auth_connection_send/recv() 2015-07-07 14:05:28 +02:00
libnet_join.h s4:libnet: add const to libnet_JoinDomain->out.samr_binding 2014-02-13 11:54:16 +01:00
libnet_lookup.c s4:libnet: avoid compiler warnings in libnet_lookup.c 2014-02-13 11:54:13 +01:00
libnet_lookup.h
libnet_passwd.c CVE-2013-4408:s3:Ensure LookupNames replies arrays are range checked. 2013-12-09 07:05:46 +01:00
libnet_passwd.h
libnet_rpc.c s4:libnet: make use of dcerpc_secondary_auth_connection_send/recv() 2015-07-07 14:05:28 +02:00
libnet_rpc.h
libnet_samdump.c
libnet_samsync_ldb.c Remove a number of NT_STATUS_HAVE_NO_MEMORY_AND_FREE macros from the codebase. 2014-03-05 16:33:21 +01:00
libnet_samsync.c s4:libnet: avoid usage of dcerpc_schannel_creds() 2013-08-10 09:18:59 +02:00
libnet_samsync.h
libnet_share.c s4:libnet: fix 'Syscall param writev(vector[...])' valgrind error 2016-04-25 10:35:14 +02:00
libnet_share.h
libnet_site.c s4-libnet: make it possible to join "off-site". 2014-10-24 13:50:30 +02:00
libnet_site.h
libnet_time.c
libnet_time.h
libnet_unbecome_dc.c Order switch statements 2014-07-07 07:47:44 +02:00
libnet_unbecome_dc.h
libnet_user.c s4:libnet: let libnet_rpc_usermod_send() take tevent_context/dcerpc_binding_handle 2014-01-16 16:22:52 +01:00
libnet_user.h
libnet_vampire.c repl: Use DSDB_REPL_FLAG_PRIORITISE_INCOMING in samba-tool drs replicate --local 2015-10-26 05:11:21 +01:00
libnet_vampire.h
libnet.c
libnet.h
prereq_domain.c
py_net_dckeytab.c
py_net.c samba-tool: Remove vampire subcommand and now unused libnet_Vampire() 2015-10-26 05:11:21 +01:00
py_net.h
userinfo.c s4:libnet: let libnet_rpc_userinfo() take tevent_context/dcerpc_binding_handle 2014-01-16 16:22:51 +01:00
userinfo.h
userman.c Fix the O3 developer build 2015-03-03 13:14:53 +01:00
userman.h
wscript_build s4-libnet: Link dckeytab.so correctly when is AD DC enabled 2016-03-24 15:12:21 +01:00