hackernews • r/hackernews
Comment on: Debugging memory corruption: who the hell writes "2" into my stack? (2016)
According to the documentation, the wait is terminated by APC calls, so there is no need to trigger an exception in the APC call to return control to C++:https://learn.microsoft.com/en-us/windows/win32/api/winsock2...https://learn.microsoft.com/en-us/windows/win32/api/synchapi...If they had implemented this to use a C++ exception to return control to C++, they should have encountered this stack corruption issue immediately upon implementing this, rather than have a customer some point in the future hit it before they did.My read of this is that they had the callback function do something and s