tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

datachannel-oom.html (512B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <meta charset="utf-8">
      5  <title></title>
      6  <script type="application/javascript">
      7    function start() {
      8      var size = 2147483638;
      9      new RTCPeerConnection().createDataChannel('a').send(new Uint8Array(size));
     10      var a = "a";
     11      var count = Math.floor(Math.log2(size)) - 1;
     12      for (var i = 0; i < count; i++) {
     13        a += a;
     14      }
     15      new RTCPeerConnection().createDataChannel('a').send(a)
     16    }
     17  </script>
     18 </head>
     19 
     20 <body onload="start()">
     21 </body>
     22 </html>