summaryrefslogtreecommitdiffstats
path: root/testfiles/rendering_tests/test-dont-crash.svg
blob: 9eabd33fb1152fc0e09977175f5f735fdb15147a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
   xmlns="http://www.w3.org/2000/svg"
   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
   version="1.1"
   viewBox="0 0 210 297"
   height="297mm"
   width="210mm">
  <g
     id="layer1"
     inkscape:groupmode="layer"
     inkscape:label="Layer 1">
    <!-- missing xlink:href attribute - don't care how it's rendered (place it
         off-page), but Inkscape should not crash -->
    <image
       y="-100"
       x="-100"
       height="50"
       width="50" />

    <!-- missing points attribute -->
    <polygon />
    <polyline />

    <!-- empty points attribute -->
    <polygon points="" />
    <polyline points="" />

    <!-- odd number of coordinates with 0 valid points -->
    <polygon points="0" />
    <polyline points="0" />

    <!-- odd number of coordinates with trailing comma -->
    <polygon points="0," />
    <polyline points="0," />

    <!-- only one point -->
    <polygon points="0,0" />
    <polyline points="0,0" />

    <!-- odd number of coordinates with 1 valid point -->
    <polygon points="0 0 100" />
    <polyline points="0 0 100" />

    <!-- nan (https://gitlab.com/inkscape/inkscape/-/issues/4021) -->
    <polygon points="0,0 nan,nan" />
    <polyline points="0,0 nan,nan" />

  </g>
</svg>