Bug 84104

Summary: Crash in invalid index for _textMarkerForIndex
Product: WebKit Reporter: chris fleizach <cfleizach>
Component: AccessibilityAssignee: chris fleizach <cfleizach>
Status: RESOLVED FIXED    
Severity: Normal CC: bdakin, webkit.review.bot
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch none

Description chris fleizach 2012-04-16 17:20:19 PDT
if you pass in an invalid index, you can crash or assert


Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.apple.WebCore             	0x000000010fb05771 WebCore::RangeBoundaryPoint::toPosition() const + 17
1   com.apple.WebCore             	0x00000001103b6f8b -[WebAccessibilityObjectWrapper _textMarkerForIndex:] + 91
2   com.apple.WebCore             	0x00000001103b8502 -[WebAccessibilityObjectWrapper accessibilityAttributeValue:forParameter:] + 5042
3   com.apple.AppKit              	0x000000010611db36 CopyParameterizedAttributeValue + 328
4   com.apple.HIServices          	0x00000001094114c9 _AXXMIGCopyParameterizedAttributeValue + 265
5   com.apple.HIServices          	0x000000010941b0b2 _XCopyParameterizedAttributeValue + 576
Comment 1 chris fleizach 2012-04-16 17:21:07 PDT
rdar://11247276
Comment 2 chris fleizach 2012-04-16 23:00:23 PDT
Created attachment 137482 [details]
patch
Comment 3 WebKit Review Bot 2012-04-17 12:48:32 PDT
Comment on attachment 137482 [details]
patch

Clearing flags on attachment: 137482

Committed r114418: <http://trac.webkit.org/changeset/114418>
Comment 4 WebKit Review Bot 2012-04-17 12:48:36 PDT
All reviewed patches have been landed.  Closing bug.