https://bugs.winehq.org/show_bug.cgi?id=52259
Bug ID: 52259 Summary: osu! sometimes crashes in select() Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winsock Assignee: wine-bugs@winehq.org Reporter: openglfreak@googlemail.com Distribution: ---
In an osu! Discord server I'm in I've received multiple reports of osu! crashing, with the stack trace given by the game ending in System.Net.UnsafeNclNativeMethods.OSSOCK.select. According to old .NET Core code the .NET Framework calls select() with manually constructed `fd_set`s consisting of only two pointers. Since Wine always reads the whole fd_set, if these allocations fall on the edge of the heap Wine tries to read past the end of the heap and segfaults.