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

ASIO401 crashes if methods are called on an uninitialized driver #20

Closed
dechamps opened this issue May 14, 2020 · 1 comment
Closed
Labels
asiohost Issue with a specific ASIO Host Application bug Something isn't working

Comments

@dechamps
Copy link
Owner

dechamps commented May 14, 2020

CASIO401::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 was discovered when troubleshooting an issue with the HpW Works software. 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 dechamps added bug Something isn't working asiohost Issue with a specific ASIO Host Application labels May 14, 2020
@dechamps
Copy link
Owner Author

This has been fixed in ASIO401 2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
asiohost Issue with a specific ASIO Host Application bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant