mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s4:torture:rpc: fix valgrind 'Syscall param writev(vector[...])' error
running smbtorture test rpc.samba3.winreg.winreg yields the following valgrind trace ==18533== Syscall param writev(vector[...]) points to uninitialised byte(s) ==18533== at 0xFBA2C87: writev (in /lib64/libc-2.19.so) ==18533== by 0x106CB033: writev_handler (async_sock.c:340) ==18533== by 0xF67812A: ??? (in /usr/lib64/libtevent.so.0.9.26) ==18533== by 0xF6765F6: ??? (in /usr/lib64/libtevent.so.0.9.26) ==18533== by 0xF6727FC: _tevent_loop_once (in /usr/lib64/libtevent.so.0.9.26) ==18533== by 0xF673ACE: tevent_req_poll (in /usr/lib64/libtevent.so.0.9.26) ==18533== by 0x5D19325: tevent_req_poll_ntstatus (tevent_ntstatus.c:109) ==18533== by 0x88B2E0D: dcerpc_binding_handle_call (binding_handle.c:556) ==18533== by 0xBBD049F: dcerpc_winreg_EnumValue_r (ndr_winreg_c.c:2354) ==18533== by 0x3D3E3E: enumvalues (samba3rpc.c:2982) ==18533== by 0x3D40A5: enumkeys (samba3rpc.c:3042) ==18533== by 0x3D4085: enumkeys (samba3rpc.c:3041) ==18533== Address 0x1886edd6 is 598 bytes inside a block of size 1,325 alloc'd ==18533== at 0x4C29110: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==18533== by 0xF464A73: _talloc_pooled_object (in /usr/lib64/libtalloc.so.2.1.5) ==18533== by 0xF67366D: _tevent_req_create (in /usr/lib64/libtevent.so.0.9.26) ==18533== by 0xB0D49FF: smb1cli_req_create (smbXcli_base.c:1322) ==18533== by 0xB0E1E6D: smb1cli_trans_send (smb1cli_trans.c:512) ==18533== by 0xB0ED47D: tstream_smbXcli_np_readv_trans_start (tstream_smbXcli_np.c:901) ==18533== by 0xB0EC847: tstream_smbXcli_np_writev_write_next (tstream_smbXcli_np.c:578) ==18533== by 0xB0EC4D7: tstream_smbXcli_np_writev_send (tstream_smbXcli_np.c:505) ==18533== by 0xC259DFA: tstream_writev_send (tsocket.c:695) ==18533== by 0xC25AD64: tstream_writev_queue_trigger (tsocket_helpers.c:513) ==18533== by 0xF673023: tevent_common_loop_immediate (in /usr/lib64/libtevent.so.0.9.26) ==18533== by 0xF677EED: ??? (in /usr/lib64/libtevent.so.0.9.26) ==18533== 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
9e8d748db3
commit
c901d98d6e
@ -2960,6 +2960,7 @@ static bool enumvalues(struct torture_context *tctx,
|
||||
NTSTATUS status;
|
||||
uint32_t size, length;
|
||||
|
||||
ZERO_STRUCT(buf8);
|
||||
r.in.handle = handle;
|
||||
r.in.enum_index = enum_index;
|
||||
name.name = "";
|
||||
|
Loading…
Reference in New Issue
Block a user