Fully expand entities to ensure deep or widely nested ones fail parsing
authorMitch Curtis <mitch.curtis@digia.com>
Tue, 12 Nov 2013 12:44:56 +0000 (13:44 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 15 Nov 2013 19:12:06 +0000 (20:12 +0100)
commitcecceb0cdd87482124a73ecf537f3445d68be13e
tree4a6a17e5c8b42f83ab268ea4929eb2b4ba861391
parenta9edbeddafe5d8866192de44f4028d07bd93013a
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>
src/xml/sax/qxml.cpp
tests/auto/qxmlsimplereader/tst_qxmlsimplereader.cpp