kernel32: fix use-after-close in create_process

Dan Kegel dank at kegel.com
Tue Sep 21 07:36:09 CDT 2010


On Tue, Sep 21, 2010 at 5:30 AM, Dmitry Timoshkov
<dmitry at codeweavers.com> wrote:
> Dan Kegel <dank at kegel.com> wrote:
>
>> Spotted by Guillaume ORTEGA.  He reports this fixes
>> http://bugs.winehq.org/show_bug.cgi?id=24101
>>
>> Passes kernel32 tests.
>
> That's not a use after close, client's fd passed in the server call is used
> just as an association of the server side.

Guillaume claims in
http://bugs.winehq.org/show_bug.cgi?id=24101#c33
that wine_server_send_fd() returns before the fd is
actually sent, and delaying the close until after the
server call fixes the race.



More information about the wine-devel mailing list