summaryrefslogtreecommitdiffstats
path: root/tests/auto/xml/sax/qxmlsimplereader/xmldocs/1-levels-nested-dtd.xml
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@digia.com>2013-09-27 12:32:28 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-05 15:55:17 +0100
commit46a8885ae486e238a39efa5119c2714f328b08e4 (patch)
tree25301bafd9e16642b4929876a10b9727da1a674b /tests/auto/xml/sax/qxmlsimplereader/xmldocs/1-levels-nested-dtd.xml
parent55c14e35f10d5a293ae6535a1ee31963b80109a6 (diff)
Disallow deep or widely nested entity references.
Nested references with a depth of 2 or greater will fail. References that partially expand to greater than 1024 characters will also fail. Change-Id: Id4e49d6f7cf51e3a247efdb4c6c7c9bd9b223f6e Reviewed-by: Richard J. Moore <rich@kde.org> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'tests/auto/xml/sax/qxmlsimplereader/xmldocs/1-levels-nested-dtd.xml')
-rw-r--r--tests/auto/xml/sax/qxmlsimplereader/xmldocs/1-levels-nested-dtd.xml12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/xml/sax/qxmlsimplereader/xmldocs/1-levels-nested-dtd.xml b/tests/auto/xml/sax/qxmlsimplereader/xmldocs/1-levels-nested-dtd.xml
new file mode 100644
index 0000000000..0dfc15b165
--- /dev/null
+++ b/tests/auto/xml/sax/qxmlsimplereader/xmldocs/1-levels-nested-dtd.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<!-- Test non-deterministic content model matching.
+
+Entity references are not part of the internal DTD subset (for good reason).
+
+-->
+<!DOCTYPE root [
+<!ELEMENT e0 EMPTY>
+<!ENTITY % e1 "(e0,e0)">
+<!ELEMENT root (%e1;)?>
+]>
+<root/> \ No newline at end of file