Fix Access violation at BrowserAccessibility::GetInlineTextRect
Currently, BrowserAccessibility::GetInlineTextRect may receive negative inner text offsets which later induce an access violation when retrieving character offsets. These negative inner text offsets are the result of unnecessary searching through sub-trees which do not contain the queried text offsets. This change resolves this bug by adding additional validation of inner text bounds. Any inner text offsets passed to GetInlineTextRect are pre-validated by GetInnerTextRangeBoundsRect. Bug: 960452 Change-Id: I4de0f23fcde2319874805141d396f576b176d796 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1605150Reviewed-by:Dominic Mazzoni <dmazzoni@chromium.org> Commit-Queue: Frank Poole <frpoole@microsoft.com> Cr-Commit-Position: refs/heads/master@{#658775}
Showing
Please register or sign in to comment