JSON.stringify hangs the browser

RESOLVED FIXED in Firefox 48

Status

()

defect
--
critical
RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: nxrighthere, Assigned: Waldo)

Tracking

({hang})

46 Branch
mozilla48
Points:
---

Firefox Tracking Flags

(firefox48 fixed)

Details

Attachments

(1 attachment)

Reporter

Description

3 years ago
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.
Reporter

Updated

3 years ago
Component: Untriaged → JavaScript Engine
Keywords: hang
Product: Firefox → Core
Reporter

Updated

3 years ago
Severity: normal → critical
Summary: JSON.stringify() hangs the browser → JSON.stringify hangs the browser
Assignee

Comment 1

3 years ago
Posted patch PatchSplinter Review
Attachment #8740128 - Flags: review?(evilpies)
Assignee

Updated

3 years ago
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+

Comment 4

3 years ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/1e6cb22a8971
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
You need to log in before you can comment on or make changes to this bug.