qt5base-lts/src
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
..
3rdparty Fix crash with multi threaded QFont/QTextEngine usage 2015-01-20 05:47:32 +01:00
android Fixes for surface creation/destruction 2015-01-10 16:43:01 +01:00
angle [ANGLE] Fix compilation with MSVC2013 Update4 2014-12-15 09:19:48 +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 Doc: link issue D-Bus Viewer 2015-01-12 13:44:24 +01:00
gui Make harfbuzz-old fallback available at run-time 2015-01-19 13:50:32 +01:00
network Set pendingClose to false on init in QSslSocket 2015-01-19 08:16:24 +01:00
opengl Qt OpenGL is deprecated with 5.4. Show that in the docs as well 2014-12-18 09:48:37 +01:00
openglextensions purge vestiges of opengl es 1 support 2014-04-04 19:32:21 +02:00
platformheaders Doc: Adding API reference section in Qt Platform Headers page. 2014-09-30 21:00:50 +02:00
platformsupport Merge 5.4 into 5.4.1 2015-01-16 21:02:26 +01:00
plugins Fix finding widgets for Windows Embedded Compact 2015-01-22 08:31:37 +01:00
printsupport Update printer metrics after resolution change. 2015-01-16 13:34:37 +01:00
sql Correction on bound values in case of repeated QSqlQuery::execBatch 2015-01-16 13:14:26 +01:00
testlib Also search current directory in QFINDTESTDATA 2014-12-19 16:00:59 +01:00
tools rcc: fix build failure on Windows XP / MinGW 4.9 2015-01-19 13:17:56 +01:00
widgets Fix possible divide by zero in QMacStyle 2015-01-19 08:21:01 +01:00
winmain Merge remote-tracking branch 'origin/5.3' into 5.4 2014-08-12 13:05:02 +02:00
xml Remove old Trolltech feature string from QXmlSimpleReader docs 2014-10-20 11:24:59 +02:00
src.pro Add missing host_build CONFIG for qlalr 2014-11-25 20:26:53 +01:00