Fwd: Re: Buffer Overflow with all versions of Internet Explorer and Javacript.

Harri Porten porten at trolltech.com
Wed Jun 5 19:27:28 BST 2002


On Tue, 4 Jun 2002, Koos Vriezen wrote:

> On Tue, 4 Jun 2002, Koos Vriezen wrote:
> > On Tue, 4 Jun 2002, Harri Porten wrote:
> > > The only limit that was and still is there is against too many recursive
> > > calls to the interpreter (html event->js->html->js->...). I'll try to
> > > think of something for internal recursions. But I wouldn't know what to
> > > really do against infinite loops like while(1);. They can be by design and
> > > harmless but there is no way to abort them, yet. Easier with threading.
> >
> > Maybe use SIGALARM?
> 
> Just a small hack that stops a 'while(true);' script after 5 seconds:

SIGALARM is also the best solution I can think of. But it needs more
thinking as it has to be made more flexible. If the interpreter hangs in
a call to an interactive function (e.g. window.alert()) it's perfectly
acceptable to wait infinitely.

Harri.






More information about the kfm-devel mailing list