summaryrefslogtreecommitdiffstats
path: root/parser/htmlparser/tests/crashtests/1747514.html
blob: 9411f22a5249c9551d97e11c3c2251f2e69ad33f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!DOCTYPE html>
<html>
  <body>
  <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>