summaryrefslogtreecommitdiffstats
path: root/parser/htmlparser/tests/crashtests/1747514.html
blob: e8a93b9280da0b6732e89e6b6aa791483f8113b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!DOCTYPE html>
<html>
  <head>
  <script>
    // Generate an SVG data URI whose URI string will consume 20 MB in expat
    // (which uses two-byte chars).
    let img = document.createElement('img');
    let rect = "<rect />";
    let src = "data:image/svg+xml;utf8,<svg>" + rect.repeat(20 * 1000 * 1000 / rect.length / 2) + "</svg>";
    img.src = src;
    document.body.appendChild(img);
  </script>