diff options
author | Konstantin Shegunov <kshegunov@gmail.com> | 2018-08-01 00:50:14 +0300 |
---|---|---|
committer | Konstantin Shegunov <kshegunov@gmail.com> | 2019-05-08 17:19:44 +0000 |
commit | c6bee8e4b2c48775247c67ef8e7569f623655c61 (patch) | |
tree | a3bfc28da2b37935129ebf16425de58336e3a0e6 /tests/auto/testlib/selftests/expected_sleep.lightxml | |
parent | 8adcfa8b240876236f08ad826e6d77ff1f5e9a96 (diff) |
Fix integer overflows in QDeadlineTimer
If the deadline is far in the future, the conversions to nanoseconds
or internal arithmetic may overflow and give an invalid object, thus
the deadline may end up in the past. Added a test to the testlib
selftest for sleep.
[ChangeLog][QtCore][QDeadlineTimer] Fixed integer overflows
leading to immediate timeouts.
Task-number: QTBUG-69750
Change-Id: I9814eccdf9f9b3add9ca66ec3e27e10cd5ad54a8
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/testlib/selftests/expected_sleep.lightxml')
-rw-r--r-- | tests/auto/testlib/selftests/expected_sleep.lightxml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/testlib/selftests/expected_sleep.lightxml b/tests/auto/testlib/selftests/expected_sleep.lightxml index 97b65d1259..78e1c44cf2 100644 --- a/tests/auto/testlib/selftests/expected_sleep.lightxml +++ b/tests/auto/testlib/selftests/expected_sleep.lightxml @@ -11,6 +11,10 @@ <Incident type="pass" file="" line="0" /> <Duration msecs="0"/> </TestFunction> +<TestFunction name="wait"> +<Incident type="pass" file="" line="0" /> + <Duration msecs="0"/> +</TestFunction> <TestFunction name="cleanupTestCase"> <Incident type="pass" file="" line="0" /> <Duration msecs="0"/> |