[webkit-changes] [WebKit/WebKit] ce816c: Make Intl.Segmenter more resilient to an OutOfMemo...

Commit Queue noreply at github.com
Wed Oct 18 09:14:17 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ce816ccc77d7d5dc4922b6f0ea66d22db6227edd
      https://github.com/WebKit/WebKit/commit/ce816ccc77d7d5dc4922b6f0ea66d22db6227edd
  Author: Mark Lam <mark.lam at apple.com>
  Date:   2023-10-18 (Wed, 18 Oct 2023)

  Changed paths:
    A JSTests/stress/out-of-memory-in-intl-segmenter.js
    M Source/JavaScriptCore/JavaScriptCore.order
    M Source/JavaScriptCore/runtime/IntlSegmenter.cpp
    M Source/WTF/wtf/URLHelpers.cpp
    M Source/WTF/wtf/text/WTFString.cpp
    M Source/WTF/wtf/text/WTFString.h
    M Source/WebCore/PAL/pal/text/win/TextCodecWin.cpp
    M Source/WebCore/platform/win/ClipboardUtilitiesWin.cpp

  Log Message:
  -----------
  Make Intl.Segmenter more resilient to an OutOfMemory error.
https://bugs.webkit.org/show_bug.cgi?id=263278
rdar://116884999

Reviewed by Justin Michaud.

* JSTests/stress/out-of-memory-in-intl-segmenter.js: Added.
(catch):
* Source/JavaScriptCore/JavaScriptCore.order:
* Source/JavaScriptCore/runtime/IntlSegmenter.cpp:
(JSC::IntlSegmenter::segment const):
* Source/WTF/wtf/URLHelpers.cpp:
(WTF::URLHelpers::mapHostName):
* Source/WTF/wtf/text/WTFString.cpp:
(WTF::String::charactersWithoutNullTermination const):
(WTF::String::charactersWithNullTermination const):
* Source/WTF/wtf/text/WTFString.h:
* Source/WebCore/PAL/pal/text/win/TextCodecWin.cpp:
(PAL::TextCodecWin::enumerateSupportedEncodings):
* Source/WebCore/platform/win/ClipboardUtilitiesWin.cpp:
(WebCore::setFileDescriptorData):

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




More information about the webkit-changes mailing list