qt5base-lts/tests/auto/corelib
Thiago Macieira 52a2505672 QCborValue: avoid signed integer oveflows when decoding time_t
QDateTime::fromSecsSinceEpoch() multiplies by 1000 but does not check
for overflow. That means we must do so in QCborValue validation. We
can't use mul_overflow<qint64> on 32-bit platforms, so we do a compare-
and-branch there. For 64-bit platforms, we prefer to do the
multiplication with checked overflow, as the common case is that it will
not overflow and we'll need the multiplication anyway.

Change-Id: Ibdc95e9af7bd456a94ecfffd16060cba6f1c86b8
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2020-04-30 11:00:29 +00:00
..
animation Try to stabilize flaky test cases of tst_qsequentialanimationgroup 2020-03-12 09:40:43 +01:00
codecs Port from QStringViewLiteral to u"" 2019-07-29 11:17:28 +03:00
global Make tst_QRandomGenerator::qualityReal() test more stable 2020-03-25 22:19:24 +01:00
io tst_QFileInfo: fix running with systems without /etc/passwd 2020-04-09 10:55:25 -03:00
itemmodels QIdentityProxyModel: implement moveRows / moveColumns 2020-01-02 17:48:07 +01:00
kernel Introduce QSocketNotifier::activate(QSocketDescriptor, QSN::Type) 2020-04-16 13:52:11 +02:00
mimetypes Core: Use Qt::SplitBehavior in preference to QString::SplitBehavior 2020-02-28 15:37:11 +01:00
plugin Merge remote-tracking branch 'origin/5.14' into 5.15 2020-03-11 11:27:49 +01:00
serialization QCborValue: avoid signed integer oveflows when decoding time_t 2020-04-30 11:00:29 +00:00
statemachine std::chrono overload added to QStateMachine::postDelayedEvent() 2020-02-10 15:04:39 +01:00
text Fix deprecation warning in tst_QLocale()'s use of QProcess::start() 2020-04-03 15:13:23 +02:00
thread Add a constructor for QRunnable from anonymous functions 2020-01-31 19:20:43 +01:00
time Handle specified time-spec in date-time parsing 2020-04-22 14:14:30 +03:00
tools tst_QScopeGuard: Fix build by giving template parameters explicitly 2020-04-06 09:27:01 +02:00
corelib.pro Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00