Menu

#144 wait_on_handle -async crashes on invalid handles

Unscheduled
open
nobody
None
Bug
5
2015-03-25
2015-03-25
No

If wait_on_handle -async is called with an invalid handle, program crashes. Moreover, note that MSDN says behaviour is undefined if a previous handle is closed while the wait is active (RegisterWaitForObject).

Protect against this by either internally maintaining handle list (currently we rely on Windows API validating handles) or by checking validity through GetHandleInfo before calling Register*

Discussion

Anonymous
Anonymous

Add attachments
Cancel