Go to file
Markus Rathgeb e998f971f6 Fix QMutex::tryLock timeout regression (integer overflow)
The timeout given in milliseconds should be converted to a timespec
struct.
To separate the seconds and nanoseconds the milliseconds are first
multiplied to represent the whole value in an int64 variable.
The calculation is done on integers, so we get an overflow if the
milliseconds are bigger then 2148.
If we cast the given value to an int64 we can avoid this problem.

Fix the used cast.

Task-number: QTBUG-24795
Change-Id: I864ae227cf7dda16a6f30aa4db74acc49e20f6eb
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
2012-04-24 12:48:38 +02:00
bin Ignore moduledir/doc in syncqt 2012-04-17 23:16:51 +02:00
config.tests Ensure that qXXXdetection.h can be included directly 2012-04-21 11:19:39 +02:00
dist QSqlQueryModel::setQuery() don't use deprecated reset() 2012-04-23 19:20:19 +02:00
doc Doc: Fix most QDoc errors in QtXml. 2012-04-23 09:45:24 +02:00
examples Use org.example instead of com.trolltech for the D-Bus examples 2012-04-22 21:32:33 +02:00
lib Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
mkspecs Add N9 device mkspec to device mkspecs folder 2012-04-24 12:48:38 +02:00
qmake Don't use the QRegExp methods that modify the object [qmake] 2012-04-23 19:20:19 +02:00
src Fix QMutex::tryLock timeout regression (integer overflow) 2012-04-24 12:48:38 +02:00
tests Fix windowgeometry test for Windows. 2012-04-24 10:44:29 +02:00
tools Fix detection of default platform plugin. 2012-04-19 16:40:29 +02:00
util Merge remote-tracking branch 'origin/master' into api_changes 2012-04-16 12:04:34 +02:00
.gitattributes Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
.gitignore Add imports directory to ignore list 2012-04-11 01:42:12 +02:00
.tag Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
configure Fix detection of default platform plugin. 2012-04-19 16:40:29 +02:00
configure.bat Remove Q_BYTE_ORDER and -*-endian arguments from configures 2012-03-02 14:48:00 +01:00
header.BSD Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
header.FDL Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
header.LGPL Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
header.LGPL-ONLY Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
INSTALL Remove Symbian specific code from qtbase. 2012-01-31 07:08:31 +01:00
LGPL_EXCEPTION.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.FDL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.LGPL Update contact information in license headers. 2012-01-23 04:04:33 +01:00
LICENSE.PREVIEW.COMMERCIAL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
qtbase.pro device: Add -device and -device-option to configure 2012-03-27 05:35:57 +02:00
sync.profile Add qprocessordetection.h 2012-02-08 12:33:11 +01:00