Bug 84104 - Crash in invalid index for _textMarkerForIndex
Summary: Crash in invalid index for _textMarkerForIndex
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: chris fleizach
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2012-04-16 17:20 PDT by chris fleizach
Modified: 2012-04-17 12:48 PDT (History)
2 users (show)

See Also:


Attachments
patch (3.99 KB, patch)
2012-04-16 23:00 PDT, chris fleizach
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.