qt5base-lts/tests/auto/corelib
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
..
animation Android: Stabilize QPauseAnimation test 2014-12-22 09:26:38 +01:00
codecs Hardcode UTF-8 for "unicode" in QTextCodec::codecForHtml(). 2014-10-28 12:17:13 +01:00
global tst_qlogging: add tests for %{pid} and %{threadid} 2014-12-19 01:54:41 +01:00
io QTemporaryDir: Remove directories on failure 2015-01-22 08:31:54 +01:00
itemmodels QSortFilterProxyModel: fix a regression 2015-01-22 08:31:28 +01:00
json Android: Fix json test. 2014-12-22 08:32:39 +01:00
kernel Android: Fix QTranslator tests 2015-01-06 16:44:27 +01:00
mimetypes Update license headers and add new license files 2014-09-24 12:26:19 +02:00
plugin Update license headers and add new license files 2014-09-24 12:26:19 +02:00
statemachine tst_QState: fix memleaks 2014-10-19 13:18:12 +02:00
thread tst_QThreadPool: fix memleak 2014-10-19 13:18:07 +02:00
tools tst_qstring_mac: Correct memory management. 2015-01-20 05:47:16 +01:00
xml Fix QXmlStreamReader parsing of files containing NULs 2015-01-24 18:35:22 +01:00
corelib.pro iOS: Enable building of basic tests 2014-01-22 12:35:17 +01:00