diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2016-05-22 10:56:40 -0700 |
---|---|---|
committer | Jędrzej Nowacki <jedrzej.nowacki@theqtcompany.com> | 2016-05-26 11:05:43 +0000 |
commit | 0a8b00b6ffa7e79397c7cc6bc368b423bc29f808 (patch) | |
tree | 37dca4239afb783d88a56db477c2bf83f036213c /tests/auto/corelib | |
parent | 5904822b50f628734da66e27d85bd9a27c7d58ae (diff) |
Fix invalid QDataStream data for QDateTime
The stream in question is from prior to Qt 5.0 release, before
commit 718a2251be2d32f96befef1ec23912c1a2ce3e34 changed QDateTime
serialization format to store Qt::TimeSpec instead of the private
flag. The last byte was 0xff meaning LocalUnknown, but 0xff is
not valid in Qt 5.0.
It was just garbage that Qt up to now just accepted. With the upcoming
short QDateTime optimization, the results are worse.
Change-Id: I25d85d86649448d5b2b3fffd1450f57df17e7794
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@theqtcompany.com>
Diffstat (limited to 'tests/auto/corelib')
-rw-r--r-- | tests/auto/corelib/kernel/qvariant/stream/qt5.0/qdatetime.bin | bin | 40 -> 40 bytes |
1 files changed, 0 insertions, 0 deletions
diff --git a/tests/auto/corelib/kernel/qvariant/stream/qt5.0/qdatetime.bin b/tests/auto/corelib/kernel/qvariant/stream/qt5.0/qdatetime.bin Binary files differindex ee3da63a18..e3a897c37d 100644 --- a/tests/auto/corelib/kernel/qvariant/stream/qt5.0/qdatetime.bin +++ b/tests/auto/corelib/kernel/qvariant/stream/qt5.0/qdatetime.bin |