diff options
Diffstat (limited to 'testfiles/rendering_tests/test-dont-crash.svg')
-rw-r--r-- | testfiles/rendering_tests/test-dont-crash.svg | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/testfiles/rendering_tests/test-dont-crash.svg b/testfiles/rendering_tests/test-dont-crash.svg new file mode 100644 index 0000000..9eabd33 --- /dev/null +++ b/testfiles/rendering_tests/test-dont-crash.svg @@ -0,0 +1,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> |