Closed Bug 1257164 Opened 9 years ago Closed 9 years ago

JSON.stringify hangs the browser

Categories

(Core :: JavaScript Engine, defect)

46 Branch
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla48
Tracking Status
firefox48 --- fixed

People

(Reporter: nxrighthere, Assigned: Waldo)

Details

(Keywords: hang)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:46.0) Gecko/20100101 Firefox/46.0 Build ID: 20160314144540 Steps to reproduce: Code: var x = []; x[0x7fffffff]=1; JSON.stringify(x); Demo: https://jsfiddle.net/kLbf880o/6/ Actual results: Execution of this code constantly hangs the browser.
Component: Untriaged → JavaScript Engine
Keywords: hang
Product: Firefox → Core
Severity: normal → critical
Summary: JSON.stringify() hangs the browser → JSON.stringify hangs the browser
Attached patch PatchSplinter Review
Attachment #8740128 - Flags: review?(evilpies)
Assignee: nobody → jwalden+bmo
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Comment on attachment 8740128 [details] [diff] [review] Patch Review of attachment 8740128 [details] [diff] [review]: ----------------------------------------------------------------- Uh <3 JS :/
Attachment #8740128 - Flags: review?(evilpies) → review+
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: