[Webkit-unassigned] [Bug 143511] New: JSON.stringify hanging WebKit on a cyclic structure

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 7 21:16:02 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=143511

            Bug ID: 143511
           Summary: JSON.stringify hanging WebKit on a cyclic structure
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Macintosh Intel
                OS: Mac OS X 10.10
            Status: NEW
          Severity: Major
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: chrisjshull at gmail.com

The following line of code will hang WebKit. 
Don't even get a "Maximum call stack size exceeded" error.

JSON.stringify({ toJSON: function () { return { foo: this }; } });

Reproduces in Safari Version 8.0.5 (10600.5.9), as well as nightly build r182472.

Expected: a "TypeError: JSON.stringify cannot serialize cyclic structures." should be thrown.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150408/f0208729/attachment-0001.html>


More information about the webkit-unassigned mailing list