Bug 192822 - JSON.stringify() should throw OOM on StringBuilder overflows.
Summary: JSON.stringify() should throw OOM on StringBuilder overflows.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Mark Lam
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-12-18 11:59 PST by Mark Lam
Modified: 2018-12-18 16:03 PST (History)
6 users (show)

See Also:


Attachments
proposed patch. (5.01 KB, patch)
2018-12-18 12:06 PST, Mark Lam
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Lam 2018-12-18 11:59:58 PST
<rdar://problem/46670577>
Comment 1 Mark Lam 2018-12-18 12:06:40 PST
Created attachment 357596 [details]
proposed patch.
Comment 2 Mark Lam 2018-12-18 13:57:38 PST
Comment on attachment 357596 [details]
proposed patch.

Thanks for the review.  Landing now.
Comment 3 WebKit Commit Bot 2018-12-18 14:24:41 PST
Comment on attachment 357596 [details]
proposed patch.

Clearing flags on attachment: 357596

Committed r239355: <https://trac.webkit.org/changeset/239355>
Comment 4 WebKit Commit Bot 2018-12-18 14:24:43 PST
All reviewed patches have been landed.  Closing bug.
Comment 5 Mark Lam 2018-12-18 16:03:17 PST
Landed a test fix in r239360: <http://trac.webkit.org/r239360>.