QXmlSimpleReader: fix crash
commitd95d33e67129eaa843fc0582abfe2f25ce87847d
authorFrank Osterfeld <frank@kdab.net>
Wed, 26 Aug 2009 08:53:35 +0000 (26 10:53 +0200)
committerPeter Hartmann <peter.hartmann@trolltech.com>
Wed, 26 Aug 2009 09:15:30 +0000 (26 11:15 +0200)
tree3b554dd59e2d60949b55c7d4a7a8c533160fabfd
parent01255c3b33de2f72ff0b8802e8bea0ea79998f00
QXmlSimpleReader: fix crash

Don't crash when parsing
"<?xml version=\"1.0\" encoding=\"iso-8859-1\" ?><guid><http://www.foo.dk/artikel/8938</guid>"
(unmatched "< tag followed by "foo:") using QDomDocument::setContent
together with a QXmlSimpleReader with the
"http://xml.org/sax/features/namespaces" feature enabled.

Fixes task tracker issue 254700. See there for a test case.

Merge-request: 1322
Reviewed-by: Peter Hartmann <peter.hartmann@trolltech.com>
src/xml/dom/qdom.cpp