[webkit-changes] [WebKit/WebKit] c556df: AX: Crash in AXTextMarkerRange constructor when pa...

AndresGonzalezApple noreply at github.com
Wed Jul 26 07:31:26 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c556dfa7678bf633c78307a1a178f096c47892c8
      https://github.com/WebKit/WebKit/commit/c556dfa7678bf633c78307a1a178f096c47892c8
  Author: Andres Gonzalez <andresg_22 at apple.com>
  Date:   2023-07-26 (Wed, 26 Jul 2023)

  Changed paths:
    M Source/WebCore/accessibility/AXTextMarker.cpp
    M Source/WebCore/accessibility/cocoa/AXTextMarkerCocoa.mm

  Log Message:
  -----------
  AX: Crash in AXTextMarkerRange constructor when passed a null AXTextMarkerRangeRef.
https://bugs.webkit.org/show_bug.cgi?id=259512
<rdar://problem/112870208>

Reviewed by Chris Fleizach.

Added null-checks in the conversion between AXTextMarkerRange objects and AXTextMarkerRangeRefs and VisiblePositionRanges.

* Source/WebCore/accessibility/AXTextMarker.cpp:
(WebCore::AXTextMarkerRange::operator VisiblePositionRange const):
* Source/WebCore/accessibility/cocoa/AXTextMarkerCocoa.mm:
(WebCore::AXTextMarker::AXTextMarker):
(WebCore::AXTextMarkerRange::AXTextMarkerRange):

Canonical link: https://commits.webkit.org/266313@main




More information about the webkit-changes mailing list