Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.3.0, 5.3.1
-
None
-
d1b17740ed4d9b1e3c3ad5898bb8259969dc77df
Description
Hi,
I found a disturbing thing in QXmlPatterns - QPatternist::ItemMappingIterator::next() recursively calls itself, which leads to stack overflow if a XPath query is being done on a relatively large data set (in my example - about 15k xml elements). This results from a call in qnodesort.cpp:80:
Item::List nodes(m_operand->evaluateSequence(context)->toList());
The toList() method calls next() and all hell breaks loose.
Attachments
Issue Links
- duplicates
-
QTBUG-3024 Stack overflow with QXmlQuery with large XML files
-
- Closed
-