Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FlexASIO crashes if methods are called on an uninitialized driver #74

Closed
dechamps opened this issue May 15, 2020 · 1 comment
Closed
Labels

Comments

@dechamps
Copy link
Owner

CFlexASIO::EnterInitialized() checks that the driver is initialized before handling a driver method call. The problem is, if the check fails, EnterInitialized() throws a C++ exception (without a catch) instead of returning an ASIO error code. This will likely crash the entire host process.

This bug mirrors dechamps/ASIO401#20 since the relevant code is the same. In practice it's benign because the crash can only occur if an application is misusing the driver, which should not happen in the first place.

@dechamps
Copy link
Owner Author

dechamps commented Sep 4, 2020

This is fixed in FlexASIO 1.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant