summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@digia.com>2013-11-12 12:44:56 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-15 19:12:06 (GMT)
commitcecceb0cdd87482124a73ecf537f3445d68be13e (patch)
tree4a6a17e5c8b42f83ab268ea4929eb2b4ba861391 /tests
parenta9edbeddafe5d8866192de44f4028d07bd93013a (diff)
downloadQt-cecceb0cdd87482124a73ecf537f3445d68be13e.zip
Qt-cecceb0cdd87482124a73ecf537f3445d68be13e.tar.gz
Qt-cecceb0cdd87482124a73ecf537f3445d68be13e.tar.bz2
Fully expand entities to ensure deep or widely nested ones fail parsing
With 512a1ce0698d370c313bb561bbf078935fa0342e, we failed when parsing entities whose partially expanded size was greater than 1024 characters. That was not enough, so now we fully expand all entities. This is a backport of f1053d94f59f053ce4acad9320df14f1fbe4faac. Change-Id: I41dd6f4525c63e82fd320a22d19248169627f7e0 Reviewed-by: Richard J. Moore <rich@kde.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qxmlsimplereader/tst_qxmlsimplereader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qxmlsimplereader/tst_qxmlsimplereader.cpp b/tests/auto/qxmlsimplereader/tst_qxmlsimplereader.cpp
index 2c04d8e..98284ad 100644
--- a/tests/auto/qxmlsimplereader/tst_qxmlsimplereader.cpp
+++ b/tests/auto/qxmlsimplereader/tst_qxmlsimplereader.cpp
@@ -825,7 +825,7 @@ void tst_QXmlSimpleReader::dtdRecursionLimit()
xmlReader.setDeclHandler(&handler);
xmlReader.setErrorHandler(&handler);
QVERIFY(!xmlReader.parse(source));
- QVERIFY(handler.recursionCount == 1);
+ QCOMPARE(handler.recursionCount, 2);
}
}