http://bugs.winehq.org/show_bug.cgi?id=17390
Summary: multiple overlapping reads / writes bigger than SO_SNDBUF / RCV result in data corruption Product: Wine Version: unspecified Platform: Other OS/Version: other Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: ntdll AssignedTo: wine-bugs@winehq.org ReportedBy: lkcl@lkcl.net
multiple readers of the same filedescriptor, NtReadFile, when reading data amounts that are larger than the SO_RCVBUF and/or SO_SNDBUF, could potentially end up corrupting the data because of overlaps in the reads. solutions involve having to do per-file critical sections and YES that's a generic problem even on standard files not just pipes not just messagemode pipes ALL files.
likewise multiple writers to same filedescriptor, NtWriteFile.