Skip to content

UIA: throw E_FAIL for out-of-bounds text - #8052

Merged
2 commits merged into
microsoft:mainfrom
codeofdusk:dev/codeofdusk/nvda11428
Oct 27, 2020
Merged

2 commits merged into
microsoft:mainfrom
codeofdusk:dev/codeofdusk/nvda11428

Conversation

@codeofdusk

@codeofdusk Bill Dengler (codeofdusk) commented Oct 27, 2020 •

Copy link
Copy Markdown
Contributor

In nvaccess/nvda#11428 (comment),
Andre9642 reported a Conhost crash when switching to/from the alt buffer
a few times with a Braille display connected. Upon further
investigation, Carlos Zamora (@carlos-zamora) and I discovered that the FailFast was in
GetText: more checks similar to #7677 were needed for this case.

Tested with NVDA using a Focus Braille display.

Improves nvaccess/nvda#11428

Comment thread src/types/UiaTextRangeBase.cpp Resolved

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(noted in body)

Thanks for fixing this! and finding it!

@ghost ghost added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Oct 27, 2020
Co-authored-by: Dustin L. Howett <dustin@howett.net>
@ghost ghost removed the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Oct 27, 2020
@DHowett Dustin L. Howett (DHowett) added the AutoMerge Marked for automatic merge by the bot when requirements are met label Oct 27, 2020
@ghost

Copy link
Copy Markdown

Hello Dustin L. Howett (@DHowett)!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@DHowett

Dustin L. Howett (DHowett) commented Oct 27, 2020 •

Copy link
Copy Markdown
Member

Yeah, I'll bring this one up w/ my director

@ghost
ghost merged commit 60437b8 into microsoft:main Oct 27, 2020
Dustin L. Howett (DHowett) pushed a commit that referenced this pull request Oct 28, 2020
In nvaccess/nvda#11428 (comment),
Andre9642 reported a Conhost crash when switching to/from the alt buffer
a few times with a Braille display connected. Upon further
investigation, @carlos-zamora and I discovered that the FailFast was in
`GetText`: more checks similar to #7677 were needed for this case.

Tested with NVDA using a [Focus](https://www.freedomscientific.com/products/blindness/focus40brailledisplay/) Braille display.

Improves nvaccess/nvda#11428

(cherry picked from commit 60437b8)
@ghost

Copy link
Copy Markdown

🎉Windows Terminal v1.4.3141.0 has been released which incorporates this pull request.:tada:

Handy links:

@ghost

Copy link
Copy Markdown

🎉Windows Terminal Preview v1.5.3142.0 has been released which incorporates this pull request.:tada:

Handy links:

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AutoMerge Marked for automatic merge by the bot when requirements are met hacktoberfest-accepted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants