qt5base-lts/tests/auto/corelib
Alex Trotsenko 3c87c82e52 QDataStream: do not lose error status while reading containers
Otherwise, the code:

  ds >> s >> hash;

could set the stream status to ReadPastEnd, while deserialization
of the string is failed with ReadCorruptData status.

Proposed solution is to restore a previously latched error status
unconditionally in accordance with QDataStream::setStatus() docs.

Change-Id: Id3a7dccf709b02e5b018efb48d7647ee48fe5124
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2016-06-15 07:43:54 +00:00
..
animation Updated license headers 2016-01-21 18:55:18 +00:00
codecs Merge "Merge remote-tracking branch 'origin/5.6' into dev" into refs/staging/dev 2016-01-26 11:27:37 +00:00
global Merge remote-tracking branch 'origin/5.6' into 5.7 2016-04-04 08:59:18 +02:00
io QDataStream: do not lose error status while reading containers 2016-06-15 07:43:54 +00:00
itemmodels Updated license headers 2016-01-21 18:55:18 +00:00
json QJsonObject: add some overloads taking QLatin1String 2016-05-10 21:18:46 +00:00
kernel Merge remote-tracking branch 'origin/5.6' into 5.7 2016-06-06 09:04:55 +02:00
mimetypes Merge remote-tracking branch 'origin/5.6' into 5.7 2016-04-27 09:18:05 +02:00
plugin Merge remote-tracking branch 'origin/5.6' into 5.7 2016-06-10 23:27:10 +02:00
statemachine Merge "Merge remote-tracking branch 'origin/5.6' into dev" into refs/staging/dev 2016-01-26 11:27:37 +00:00
thread Merge remote-tracking branch 'origin/5.6' into 5.7 2016-03-24 20:37:33 +01:00
tools Replace qAllocMore with a pair of more useful functions 2016-06-09 15:32:14 +00:00
xml Merge remote-tracking branch 'origin/5.6' into 5.7 2016-06-10 23:27:10 +02:00
corelib.pro iOS: Enable building of basic tests 2014-01-22 12:35:17 +01:00