Skip to content

Commit c3c4d0c

Browse files
rbernonjulliard
authored andcommitted
ntdll: Initialize dbg_offset and dbg_size (valgrind).
Syscall param writev(vector[...]) points to uninitialised byte(s) at 0x4189DA3: writev (writev.c:26) by 0x46A5A0B: send_request (server.c:213) by 0x46A5A0B: server_call_unlocked (server.c:273) by 0x46A5B4F: wine_server_call (server.c:289) by 0x46C996A: virtual_create_builtin_view (virtual.c:2524) by 0x4692CB4: dlopen_dll (loader.c:1133) by 0x46931CA: open_builtin_file (loader.c:1373) by 0x46931CA: open_builtin_file (loader.c:1354) by 0x4694559: load_builtin_dll (loader.c:1457) by 0x7BC375F2: load_builtin_dll (loader.c:2348) by 0x7BC38369: load_dll (loader.c:2705) by 0x7BC39E46: import_dll (loader.c:782) by 0x7BC36CEC: fixup_imports (loader.c:1138) by 0x7BC3BE4B: LdrInitializeThunk (loader.c:3454) Address 0x32e390 is on thread 1's stack in frame #5, created by open_builtin_file (loader.c:1357) Signed-off-by: Rémi Bernon <[email protected]> Signed-off-by: Alexandre Julliard <[email protected]>
1 parent 99088fe commit c3c4d0c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dlls/ntdll/unix/loader.c

+2
Original file line numberDiff line numberDiff line change
@@ -1068,6 +1068,8 @@ static void fill_builtin_image_info( void *module, pe_image_info_t *info )
10681068
info->header_size = nt->OptionalHeader.SizeOfHeaders;
10691069
info->file_size = nt->OptionalHeader.SizeOfImage;
10701070
info->checksum = nt->OptionalHeader.CheckSum;
1071+
info->dbg_offset = 0;
1072+
info->dbg_size = 0;
10711073
info->cpu = client_cpu;
10721074
info->__pad = 0;
10731075
}

0 commit comments

Comments
 (0)