[webkit-changes] [WebKit/WebKit] f99559: Fix crash in FetchResponse::jsonForBindings
Chirag Shah
noreply at github.com
Mon Mar 27 13:13:20 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f99559013074175c3a128e0f935f57b8878eb6cc
https://github.com/WebKit/WebKit/commit/f99559013074175c3a128e0f935f57b8878eb6cc
Author: Chirag M Shah <chirag_m_shah at apple.com>
Date: 2023-03-27 (Mon, 27 Mar 2023)
Changed paths:
A LayoutTests/js/fetch-response-json-crash-expected.txt
A LayoutTests/js/fetch-response-json-crash.html
M Source/WebCore/Modules/fetch/FetchResponse.cpp
Log Message:
-----------
Fix crash in FetchResponse::jsonForBindings
https://bugs.webkit.org/show_bug.cgi?id=254536
rdar://107265435
Reviewed by Youenn Fablet.
Make sure context.globalObject() is non-null before passing it to
JSC::JSONStringify which tries to dereference it.
* LayoutTests/js/fetch-response-json-crash-expected.txt: Added.
* LayoutTests/js/fetch-response-json-crash.html: Added.
* Source/WebCore/Modules/fetch/FetchResponse.cpp:
(WebCore::FetchResponse::jsonForBindings):
Canonical link: https://commits.webkit.org/262171@main
More information about the webkit-changes
mailing list