Bug 259512

Summary: AX: Crash in AXTextMarkerRange constructor when passed a null AXTextMarkerRangeRef.
Product: WebKit Reporter: Andres Gonzalez <andresg_22>
Component: AccessibilityAssignee: Andres Gonzalez <andresg_22>
Status: RESOLVED FIXED    
Severity: Normal CC: aboxhall, andresg_22, apinheiro, cfleizach, dmazzoni, ews-watchlist, jcraig, jdiggs, samuel_white, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch none

Description Andres Gonzalez 2023-07-25 17:18:56 PDT
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BREAKPOINT (code=1, subcode=0x1889503d0)
  * frame #0: 0x00000001889503d0 CoreFoundation`CFRelease.cold.1 + 16
    frame #1: 0x00000001887745cc CoreFoundation`CFRelease + 132
    frame #2: 0x000000028095486c WebCore`WebCore::AXTextMarkerRange::AXTextMarkerRange(this=0x000000016fa97650, textMarkerRangeRef=0x0000000000000000) at AXTextMarkerCocoa.mm:81:5
    frame #3: 0x00000002809548dc WebCore`WebCore::AXTextMarkerRange::AXTextMarkerRange(this=0x000000016fa97650, textMarkerRangeRef=0x0000000000000000) at AXTextMarkerCocoa.mm:72:1
    frame #4: 0x0000000286020cc4 WebCore`-[WebAccessibilityObjectWrapper _accessibilitySetValue:forAttribute:]::$_49::operator(this=0x0000000110252a68)() const at WebAccessibilityObjectWrapperMac.mm:2713:64
...
Comment 1 Radar WebKit Bug Importer 2023-07-25 17:19:06 PDT
<rdar://problem/112870208>
Comment 2 Andres Gonzalez 2023-07-25 17:52:25 PDT
Created attachment 467120 [details]
Patch
Comment 3 EWS 2023-07-26 07:31:15 PDT
Committed 266313@main (c556dfa7678b): <https://commits.webkit.org/266313@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 467120 [details].