Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7a45348e0e20683eeade253712d4ea5dbff391c7
https://github.com/WebKit/WebKit/commit/7a45348e0e20683eeade253712d4ea5dbff391c7
Author: Daniel Liu <[email protected]>
Date: 2025-11-18 (Tue, 18 Nov 2025)
Changed paths:
M Source/JavaScriptCore/runtime/StringPrototype.cpp
M Source/WTF/wtf/unicode/icu/ICUHelpers.h
Log Message:
-----------
Limit JSString length during Unicode operations to 1G characters
https://bugs.webkit.org/show_bug.cgi?id=298232
rdar://159665462
Reviewed by Yusuke Suzuki.
Unicode has some limits on string length, which can cause issues
when large strings are passed in. We should limit the max length
of strings to avoid hitting these limits, and raise an OOM if we
exceed this limit.
* Source/JavaScriptCore/runtime/StringPrototype.cpp:
(JSC::normalize):
Originally-landed-as: 297297.419@safari-7622-branch (03c4ee731559).
rdar://164214304
Canonical link: https://commits.webkit.org/303199@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications