Conhost crash when using accessibility tools #3209
Labels
Area-Accessibility
Issues related to accessibility
Issue-Bug
It either shouldn't be doing this or needs an investigation.
Needs-Tag-Fix
Doesn't match tag requirements
Product-Conhost
For issues in the Console codebase
Product-Terminal
The new Windows Terminal.
Resolution-Fix-Committed
Fix is checked in, but it might be 3-4 weeks until a release.
Severity-Crash
Crashes are real bad news.
Milestone
Environment
Windows build number: Version 10.0.18362.295
Conhost build: commit df26c67
Any other software? Inspect from the 10.0.18362.0 SDK
Steps to reproduce
Expected behavior
You should see details about the window in the right hand pane.
Actual behavior
I get an access violation in
WindowUiaProviderBase::get_ProviderOptions
becausepOptions
has a value of 0x13, which isn't a valid pointer. The crash can also happen in other places depending on what accessibility call is triggered first.I believe this is a regression thatwas introduced in commit cdfbf8f.
It's been a while since I've worked with COM, but I'm fairly certain you can't return an interface without a cast the way it is now being done in those
QueryInterface
methods. Otherwise the returned interface pointer won't be pointing to the correct vtable. And I suspect that's resulting in the wrong method being called by the code that is using the returned interface, hence the bogus parameter value (the parameter was likely intended for a completely different method).The text was updated successfully, but these errors were encountered: