[webkit-changes] [WebKit/WebKit] 3e4d37: [JSC] StringSubstring can throw OOM
Yusuke Suzuki
noreply at github.com
Mon Oct 31 13:43:40 PDT 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 3e4d37cbb0a2ec3d9b7bab8474137ef5f51e2da9
https://github.com/WebKit/WebKit/commit/3e4d37cbb0a2ec3d9b7bab8474137ef5f51e2da9
Author: Yusuke Suzuki <ysuzuki at apple.com>
Date: 2022-10-31 (Mon, 31 Oct 2022)
Changed paths:
A JSTests/stress/string-substring-oom.js
M Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp
Log Message:
-----------
[JSC] StringSubstring can throw OOM
https://bugs.webkit.org/show_bug.cgi?id=247272
rdar://101235545
Reviewed by Mark Lam.
Since StringSubstring can throw OOM, we should check exception after callOperation.
* JSTests/stress/string-substring-oom.js: Added.
(foo):
* Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::compileStringSubstring):
Canonical link: https://commits.webkit.org/256169@main
More information about the webkit-changes
mailing list