scrapinghub / splash

Lightweight, scriptable browser as a service with an HTTP API
BSD 3-Clause "New" or "Revised" License
4.04k stars 508 forks source link

Too many img references lead to Dos #1097

Open lvf233 opened 3 years ago

lvf233 commented 3 years ago

🐛 Bug Report

Too many img references lead to Dos

Test script or set of commands reproducing this issue

while testing the rendering effect of JavaScript, i wrote a sample html as follow, which cause my notebook crash while using browser will not.

<script type="application/javascript">
    for (var i = 0; i < 1000000; i++) {
            var img = new Image();
            var url = 'http://ip:port/receive.html?num=' + i;
            img.src = url;
    }
</script>