-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JSC] Throw OOM error if constructArrayNegativeIndexed() fails to all…
…ocate https://bugs.webkit.org/show_bug.cgi?id=260559 <rdar://114202373> Reviewed by Mark Lam. This change leverages AllocationFailureMode to throw an OOM error if constructArrayNegativeIndexed() fails to allocate an array, which does happen in the wild (iOS apps). All clients of constructArrayNegativeIndexed() were updated to correctly handle thrown exception. * Source/JavaScriptCore/runtime/JSArray.cpp: (JSC::constructArray): (JSC::constructArrayNegativeIndexed): * Source/JavaScriptCore/runtime/JSGlobalObjectInlines.h: (JSC::constructArrayNegativeIndexed): Canonical link: https://commits.webkit.org/267300@main
- Loading branch information
Alexey Shvayka
committed
Aug 25, 2023
1 parent
2fab0f5
commit ddd9cbc
Showing
2 changed files
with
19 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters