Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c6d06eb881b7317e68379fb5177b17adb76ac717
https://github.com/WebKit/WebKit/commit/c6d06eb881b7317e68379fb5177b17adb76ac717
Author: Anand Srinivasan <[email protected]>
Date: 2026-03-09 (Mon, 09 Mar 2026)
Changed paths:
A JSTests/stress/regexp-accumulatedResult-overflow.js
M Source/JavaScriptCore/runtime/RegExpPrototype.cpp
Log Message:
-----------
Make StringBuilder in regExpProtoFuncReplace report OOM
https://bugs.webkit.org/show_bug.cgi?id=309375
rdar://171925413
Reviewed by Sosuke Suzuki.
Followup for rdar://171058069 /
https://bugs.webkit.org/show_bug.cgi?id=308836 where
regExpProtoFuncReplace has the same problem as getSubstitution. Here too
the StringBuilder is updated to report an out of memory error instead of
crashing.
Test: JSTests/stress/regexp-accumulatedResult-overflow.js
* JSTests/stress/regexp-accumulatedResult-overflow.js: Added.
(RegExp.prototype.exec):
(catch):
* Source/JavaScriptCore/runtime/RegExpPrototype.cpp:
(JSC::JSC_DEFINE_HOST_FUNCTION):
Canonical link: https://commits.webkit.org/308921@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications