This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
WaitCommEvent was called in overlapped mode with a pointer to a stack variable passed in for lpEvtMask. When the asynchronous request completes in the future, the function might no longer be in scope. In such cases, data on the stack is erroneously overwritten with the event mask.
This patch cancels the WaitCommEvent request by calling SetCommMask. This is the only documented method of cancelling the eventmask update.
Attachment:
ChangeLog
Description: Binary data
Attachment:
fhandler_serial.cc-patch
Description: Binary data
Attachment:
select.cc-patch
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |