Details
Description
At first I noticed that the incremental parsing was not working because the file was already at its end, so we were not reading any data.
I created https://codereview.qt-project.org/c/qt/qtbase/+/636399 to address it.
Later I also noticed that the code that was feeding the data byte-by-byte was always skipping the first byte. So, all the provided documents were treated as non-wellformed.
After fixing it locally (see comment https://codereview.qt-project.org/c/qt/qtbase/+/636399/comment/5ab4c195_9d64cf2e/), I saw that six non-wellformed documents were treated as well-formed during the incremental parsing.
The scope of this task is to fix the test and the parser to make sure that the incemental parsing also works correctly.
Attachments
For Gerrit Dashboard: QTBUG-135471 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
636399,7 | QXmlStreamReader: fix parsing of non-wellformed inputs | dev | qt/qtbase | Status: MERGED | +2 | 0 |
637364,2 | QXmlStreamReader: fix parsing of non-wellformed inputs | 6.9 | qt/qtbase | Status: MERGED | +2 | 0 |
637593,2 | QXmlStreamReader: fix parsing of non-wellformed inputs | 6.8 | qt/qtbase | Status: MERGED | +2 | 0 |
637638,2 | QXmlStreamReader: fix parsing of non-wellformed inputs | tqtc/lts-6.5 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |
637894,2 | QXmlStreamReader: fix parsing of non-wellformed inputs | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |