qt5base-lts/tests/auto
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
..
android Android: Check XML output and optionally stop on fail. 2015-01-06 14:26:39 +01:00
bic/data test: Add 5.1.0 bic data for linux-gcc-ia32 2013-07-08 21:47:36 +02:00
cmake Update license headers and add new license files 2014-09-24 12:26:19 +02:00
compilerwarnings/data Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
concurrent Update license headers and add new license files 2014-09-24 12:26:19 +02:00
corelib Fix QXmlStreamReader parsing of files containing NULs 2015-01-24 18:35:22 +01:00
dbus Fix compilation with older MSVC: use qIsNan instead of isnan 2015-01-15 08:40:14 +01:00
gui Fix QRawFont test when used with bundled FreeType 2015-01-16 09:27:29 +01:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
installed_cmake Add a unit test for testing Qt in its install location. 2013-07-02 23:08:54 +02:00
network Android: XFAIL a few tests in QDnsLookup 2015-01-12 13:09:57 +01:00
opengl Change bugreports.qt-project.org -> bugreports.qt.io 2014-12-18 09:46:09 +01:00
other Android: Skip QProcess_and_GuiEventLoop test 2015-01-16 09:27:37 +01:00
printsupport Change bugreports.qt-project.org -> bugreports.qt.io 2014-12-18 09:46:09 +01:00
shared Android: Keyboard doesn't hide from done button 2014-10-25 07:19:35 +02:00
sql Correction on bound values in case of repeated QSqlQuery::execBatch 2015-01-16 13:14:26 +01:00
testlib Update license headers and add new license files 2014-09-24 12:26:19 +02:00
tools Make QtDBus unit tests compile with runtime dbus-1 too 2015-01-06 18:16:32 +01:00
widgets Merge 5.4 into 5.4.1 2015-01-16 21:02:26 +01:00
xml Update license headers and add new license files 2014-09-24 12:26:19 +02:00
auto.pro Temporarily disable the QtDBus tests if the session bus isn't available 2014-12-23 12:22:56 +01:00
network-settings.h Autotest: don't leak a socket every call to QtNetworkSettings::hasIPv6 2015-01-08 01:06:17 +01:00
qtest-config.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
test.pl Autotest: Find all autotests due to changed naming conventions 2015-01-16 08:14:55 +01:00