qt6-bb10/tests/auto/corelib/xml/qxmlstream/data
Thiago Macieira 817800ad39 Fix QXmlStreamReader parsing of files containing NULs
Due to a flaw in the internal API, QXmlStreamReader's internal buffering
would mistake a NUL byte in the input stream for EOF during parsing, but
wouldn't set atEnd == true because it hadn't yet processed all bytes.
This resulted in an infinite loop in QXmlStreamReaderPrivate::parse.

So, instead of returning zero (false) to indicate EOF, return -1 (but in
unsigned form, ~0, to avoid ICC warnings of change of sign). In turn,
this required enlarging a few variables to avoid ~0U becoming 0xffff,
which is a valid QChar (could happen if the input is a QString, not a
QIODevice).

Task-number: QTBUG-43513
Change-Id: If5badcfd3e4176b79517da1fd108e0abb93a3fd1
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
2015-01-24 18:35:22 +01:00
..
1.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
001.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
001.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
1.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
2.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
002.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
002.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
2.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
3.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
003.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
3.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
003.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
4.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
004.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
4.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
004.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
5.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
005.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
5.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
005.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
6.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
006.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
006.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
6.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
007.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
7.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
007.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
7.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
8.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
008.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
008.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
8.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
9.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
009.ref Include the duplicated attribute name in the error message 2014-05-06 01:20:19 +02:00
009.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
9.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
10.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
010.ref Include the duplicated attribute name in the error message 2014-05-06 01:20:19 +02:00
010.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
10.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
11.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
011.ref Include the duplicated attribute name in the error message 2014-05-06 01:20:19 +02:00
11.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
011.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
012.ref Include the duplicated attribute name in the error message 2014-05-06 01:20:19 +02:00
12.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
12.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
012.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
013.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
13.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
13.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
013.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
014.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
14.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
14.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
014.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
15.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
015.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
015.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
15.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
16.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
016.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
016.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
16.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
017.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
017.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
018.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
018.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
019.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
019.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
020.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
20.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
20.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
020.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
21.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
021.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
21.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
021.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
022.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
22.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
22.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
022.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
023.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
023.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
024.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
024.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
025.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
025.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
026.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
026.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
027.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
027.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
028.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
028.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
029.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
029.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
030.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
030.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
031.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
031.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
032.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
032.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
033.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
033.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
034.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
034.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
035.ref Include the duplicated attribute name in the error message 2014-05-06 01:20:19 +02:00
035.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
036.ref Include the duplicated attribute name in the error message 2014-05-06 01:20:19 +02:00
036.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
037.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
037.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
038.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
038.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
039.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
039.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
040.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
040.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
041.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
041.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
042.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
042.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
043.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
043.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
044.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
044.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
045.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
045.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
046.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
046.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
047.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
047.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
048.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
048.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
051reduced.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
051reduced.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
books.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
books.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
carriagereturn+nul.ref Fix QXmlStreamReader parsing of files containing NULs 2015-01-24 18:35:22 +01:00
carriagereturn+nul.xml Fix QXmlStreamReader parsing of files containing NULs 2015-01-24 18:35:22 +01:00
colonInPI.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
colonInPI.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
doctypeEmptyMarkupDecl.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
doctypeEmptyMarkupDecl.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
mixedContent.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
mixedContent.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
namespaceCDATA.ref tests: Fix some more old references and links to Nokia 2013-02-01 15:27:37 +01:00
namespaceCDATA.xml tests: Fix some more old references and links to Nokia 2013-02-01 15:27:37 +01:00
namespaces Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
nul0.ref Fix QXmlStreamReader parsing of files containing NULs 2015-01-24 18:35:22 +01:00
nul0.xml Fix QXmlStreamReader parsing of files containing NULs 2015-01-24 18:35:22 +01:00
nul1.ref Fix QXmlStreamReader parsing of files containing NULs 2015-01-24 18:35:22 +01:00
nul1.xml Fix QXmlStreamReader parsing of files containing NULs 2015-01-24 18:35:22 +01:00
nul2.ref Fix QXmlStreamReader parsing of files containing NULs 2015-01-24 18:35:22 +01:00
nul2.xml Fix QXmlStreamReader parsing of files containing NULs 2015-01-24 18:35:22 +01:00
nul3.ref Fix QXmlStreamReader parsing of files containing NULs 2015-01-24 18:35:22 +01:00
nul3.xml Fix QXmlStreamReader parsing of files containing NULs 2015-01-24 18:35:22 +01:00
nul3bis.ref Fix QXmlStreamReader parsing of files containing NULs 2015-01-24 18:35:22 +01:00
nul3bis.xml Fix QXmlStreamReader parsing of files containing NULs 2015-01-24 18:35:22 +01:00
nul4.ref Fix QXmlStreamReader parsing of files containing NULs 2015-01-24 18:35:22 +01:00
nul4.xml Fix QXmlStreamReader parsing of files containing NULs 2015-01-24 18:35:22 +01:00
nul4bis.ref Fix QXmlStreamReader parsing of files containing NULs 2015-01-24 18:35:22 +01:00
nul4bis.xml Fix QXmlStreamReader parsing of files containing NULs 2015-01-24 18:35:22 +01:00
nul5.ref Fix QXmlStreamReader parsing of files containing NULs 2015-01-24 18:35:22 +01:00
nul5.xml Fix QXmlStreamReader parsing of files containing NULs 2015-01-24 18:35:22 +01:00
org_module.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
org_module.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
spaceBracket.ref Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
spaceBracket.xml Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00