https://bugs.winehq.org/show_bug.cgi?id=51725
--- Comment #5 from Bernhard Übelacker bernhardu@mailbox.org --- A short investigation with rr points to these actions: - DeviceIoControl(FSCTL_GET_REPARSE_POINT) get called for "Z:\initrd.img" - This sets "*returned = piosb->Information;" Unfortunately piosb->Information seems not to contain valid data. - And 7-Zip uses the value in returned for a malloc and memcpy which produces a segfault.
Following small change seems to make the fault in 7-Zip go away:
@@ -6644,6 +6666,7 @@ NTSTATUS WINAPI NtFsControlFile( HANDLE handle, HANDLE event, PIO_APC_ROUTINE ap } case FSCTL_GET_REPARSE_POINT: { + io->Information = 0; REPARSE_DATA_BUFFER *buffer = (REPARSE_DATA_BUFFER *)out_buffer; status = get_reparse_point( handle, buffer, out_size ); break;