[webkit-changes] [WebKit/WebKit] 45a531: utext_setup() can fail

Myles C. Maxfield noreply at github.com
Fri Jul 28 10:34:36 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 45a531fbee9aae168c5795cc191a49b415f10e66
      https://github.com/WebKit/WebKit/commit/45a531fbee9aae168c5795cc191a49b415f10e66
  Author: Myles C. Maxfield <mmaxfield at apple.com>
  Date:   2023-07-28 (Fri, 28 Jul 2023)

  Changed paths:
    M Source/WTF/wtf/text/icu/TextBreakIteratorICU.h

  Log Message:
  -----------
  utext_setup() can fail
https://bugs.webkit.org/show_bug.cgi?id=259468
rdar://112426537

Reviewed by Brent Fulgham.

Simply add a null check.

We don't know of any content that can cause this, but
we are getting reports of crashes at this stack trace.
So I don't know how to make a test :(

* Source/WTF/wtf/text/icu/TextBreakIteratorICU.h:
(WTF::TextBreakIteratorICU::TextBreakIteratorICU):
(WTF::TextBreakIteratorICU::operator=):
(WTF::TextBreakIteratorICU::setText):

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




More information about the webkit-changes mailing list