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
-
For Gerrit Dashboard: QTBUG-40153 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
92140,3 | fix for stack overflow | dev | qt/qtxmlpatterns | Status: ABANDONED | +2 | 0 |
92205,2 | fix for stack overflow | 5.4 | qt/qtxmlpatterns | Status: MERGED | +2 | 0 |