Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Crash under WebCore::DataDetection::detectContentInRange()
https://bugs.webkit.org/show_bug.cgi?id=241823 <rdar://95110928> Reviewed by Wenson Hsieh. The crash occurs in the wild when calling TextIterator::range() and TextIterator::m_positionNode is null. Do some hardening and early return before calling TextIterator::range() and TextIterator::atEnd() returns true to avoid the issue. * Source/WebCore/editing/cocoa/DataDetection.mm: (WebCore::DataDetection::detectContentInRange): Canonical link: https://commits.webkit.org/251735@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@295730 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information