[PATCH v2 1/2] ws2_32: Validate pointers in select().

Alexandre Julliard julliard at winehq.org
Tue Oct 19 12:42:48 CDT 2021


Torge Matthies <openglfreak at googlemail.com> writes:

> A crash in osu! was reported on Discord that segfaulted in this
> function. I don't know if there is any underlying bug and if adding
> these patches just hides a bug, but the current behavior of select() of
> just crashing is definitely wrong.

Maybe, but we don't want to add such pointer checks all over the
place. If there's an actual app that requires this, it should be done
with an exception handler. But first it should be confirmed that it's
not a Wine bug that's causing the invalid pointer.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list