KJS crash: var v=[]; v[0]=v; var w=""+v;

Harri Porten porten at trolltech.com
Sat Jul 6 19:40:45 BST 2002


On Fri, 5 Jul 2002, Koos Vriezen wrote:

> Its probably very bad javascript,

I wouldn't know of any (finite) result at least.

> but would be nice if it didn't crash kjs.

I moved the recently added safe guard against function f() { f(); } to a
more general position. The infinite recursive call to toString() is now
stopped with an exception (that can even be caught in the script!) at the
arbritrary level of 1000.

Thanks for finding this one,

Harri.

P.S. NS 4.7 segfaulted on this one, too. Didn't try any other browser.





More information about the kfm-devel mailing list