ntdll: Initialize mountmgr_unix_drive before NtDeviceIoControlFile (valgrind).
commit0eb3258a69fa168b2f9e0d44762261a150fc0ca9
authorRémi Bernon <rbernon@codeweavers.com>
Mon, 8 Mar 2021 08:14:20 +0000 (8 09:14 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 9 Mar 2021 20:33:43 +0000 (9 21:33 +0100)
treeb64de390043933fd018589dcdb6b70049f5d3c5b
parentf69e5478d5f5ca2201fd9115b34afc95c3f00187
ntdll: Initialize mountmgr_unix_drive before NtDeviceIoControlFile (valgrind).

  Syscall param writev(vector[...]) points to uninitialised byte(s)
     at 0x4189DA3: writev (writev.c:26)
     by 0x46A5A1B: send_request (server.c:213)
     by 0x46A5A1B: server_call_unlocked (server.c:273)
     by 0x46CA54F: virtual_locked_server_call (virtual.c:2993)
     by 0x4681C9A: server_ioctl_file (file.c:4789)
     by 0x468B326: NtDeviceIoControlFile (file.c:5620)
     by 0x468B7AF: get_mountmgr_fs_info (file.c:1986)
     by 0x468B7AF: get_mountmgr_fs_info (file.c:1955)
     by 0x468FCBB: NtQueryVolumeInformationFile (file.c:6483)
     by 0x4677E88: __wine_syscall_dispatcher_xsave (in /home/rbernon/Code/build-wine/wine64/dlls/ntdll/ntdll.so)
     by 0x7BC0DEB3: NtQueryVolumeInformationFile (in /home/rbernon/Code/build-wine/wine64/dlls/ntdll/ntdll.dll)
     by 0x7B01F127: GetFileInformationByHandle (file.c:2938)
     by 0x7096A5C3: _fstat64 (file.c:1791)
     by 0x7096A941: _fstat64i32 (file.c:1877)
   Address 0x7ffffe30e520 is in a rw- anonymous segment

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/ntdll/unix/file.c