From 0a8b00b6ffa7e79397c7cc6bc368b423bc29f808 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Sun, 22 May 2016 10:56:40 -0700 Subject: [PATCH] Fix invalid QDataStream data for QDateTime MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .../kernel/qvariant/stream/qt5.0/qdatetime.bin | Bin 40 -> 40 bytes 1 file 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 index ee3da63a1800f4e273a9f7fcb27e0c7ad79f9ebd..e3a897c37db6a0a3b61921d7d2c23c43447bba2f 100644 GIT binary patch delta 6 NcmdPUn4r$c000Da0SN#A delta 6 NcmdPUn4r%19{>e(0tf&A