New issue
Advanced search Search tips

Issue 595626 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner: ----
Closed: Jun 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 3
Type: ----



Sign in to add a comment

hangs and crash in JSON.stringify with slightly possible ads usage

Reported by abnes...@gmail.com, Mar 17 2016

Issue description

Chrome Version: Version 50.0.2661.26 unknown (64-bit) + nodejs 4
OS: (linux openSuSE)

It's not a bug, but i see as problem.

var x = []; x[0x7fffffff]=1; JSON.stringify(x);
Page hangs and crash.

Article about problem on Russian.

Worst usage exmaple https://jsfiddle.net/8hkr3orv/2/ that slow close on windows.

https://translate.google.ru/translate?sl=ru&tl=en&js=y&prev=_t&hl=en&ie=UTF-8&u=https%3A%2F%2Fhabrahabr.ru%2Fpost%2F279439%2F&edit-text=

Sorry for my english.

 
Components: Blink>JavaScript>Stability
Labels: Stability-Hang OS-Linux
Is there a reasonable use of this code? Or is it just a demo that can hang a page?

Comment 2 by abnes...@gmail.com, Mar 24 2016

Just demo, originally i get random(if random IDs too big) hangs after using localStorage serialization, used arrays for orders and rewrite code to object store by numerical IDs, but forget about initialization with array.
Cc: yangguo@chromium.org
Components: -Blink>JavaScript>Stability Blink>JavaScript>Runtime
Labels: -Pri-2 Pri-3
Status: Available (was: Unconfirmed)
What's the difference of this to, say, "for(;;);"?

Comment 5 by abnes...@gmail.com, Apr 21 2016

for(;;) hangs in js, and can handle. Like old interrupt dialog. Also it's can be interrupted in sandbox like nodejs or webworker.

In json.stringify system hangs by native code...

Also problem, is't linux specific.
I see. We will need a place inside stringify to check for interrupts.
Status: Fixed (was: Available)

Sign in to add a comment