[webkit-changes] [WebKit/WebKit] f0975f: [JSC] Check OOM in JSC shell btoa / atob functions
Yusuke Suzuki
noreply at github.com
Mon May 22 18:12:55 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f0975fe50c3160d17a7f759053f12c0fac68939b
https://github.com/WebKit/WebKit/commit/f0975fe50c3160d17a7f759053f12c0fac68939b
Author: Yusuke Suzuki <ysuzuki at apple.com>
Date: 2023-05-22 (Mon, 22 May 2023)
Changed paths:
A JSTests/stress/atob-btoa-oom-check.js
M Source/JavaScriptCore/jsc.cpp
Log Message:
-----------
[JSC] Check OOM in JSC shell btoa / atob functions
https://bugs.webkit.org/show_bug.cgi?id=257165
rdar://109401358
Reviewed by Mark Lam and Keith Miller.
Check OOM. JSString::value can throw an error.
We should just use toWTFString to obtain String.
* JSTests/stress/atob-btoa-oom-check.js: Added.
* Source/JavaScriptCore/jsc.cpp:
(JSC_DEFINE_HOST_FUNCTION):
Canonical link: https://commits.webkit.org/264391@main
More information about the webkit-changes
mailing list