qt5base-lts/tests/auto/xml/sax/qxmlsimplereader/xmldocs/1-levels-nested-dtd.xml
Mitch Curtis 46a8885ae4 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>
2013-11-05 15:55:17 +01:00

12 lines
253 B
XML

<?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/>