diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-03-01 16:08:34 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-04-24 11:08:43 +0000 |
commit | 6292c75fb742f2877630ec22fb3a9b0d3afc9a96 (patch) | |
tree | 431e1b91791218b65f9fe9a7db758ff880cc8457 /tests/auto | |
parent | a97a51a3cab0d0550167f3dce924865ae6fdb506 (diff) | |
download | qtsvg-6292c75fb742f2877630ec22fb3a9b0d3afc9a96.tar.gz |
Fix stack overflow on indirect self-referral
Change-Id: If2b13c3dc4a09ce6d18aff97855179172f92878b
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qsvgrenderer/tst_qsvgrenderer.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/qsvgrenderer/tst_qsvgrenderer.cpp b/tests/auto/qsvgrenderer/tst_qsvgrenderer.cpp index aa28ca9..9ce5c78 100644 --- a/tests/auto/qsvgrenderer/tst_qsvgrenderer.cpp +++ b/tests/auto/qsvgrenderer/tst_qsvgrenderer.cpp @@ -1423,6 +1423,16 @@ void tst_QSvgRenderer::testUseElement() " <circle fill=\"#a6ce39\" cx=\"0\" cy=\"0\" r=\"33\" />" " </g>" " </defs>" + "</svg>", + // 17 - Indirect self referral + "<svg>" + " <defs>" + " <g id=\"g0\">" + " <g id=\"g1\"><use href=\"#g2\"/></g>" + " <g id=\"g2\"><use href=\"#g1\"/></g>" + " </g>" + " </defs>" + " <use xlink:href=\"#g0\" fill=\"black\"/>" "</svg>" }; |