qt5base-lts/tests/auto/corelib/tools
Marc Mutz c38b14e251 Fix UB in tst_QSharedPointer::basics()
Binding a reference to the nullptr is undefined
behavior.

Just skip that particular test when 'ptr' is null.

Found by UBSan:
  tests/auto/corelib/tools/qsharedpointer/tst_qsharedpointer.cpp:258:32: runtime error: reference binding to null pointer of type 'struct Data'

Change-Id: I125588b9d269a6f76716d660d03142f409513885
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@theqtcompany.com>
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
2016-01-07 13:00:40 +00:00
..
collections Update copyright headers 2015-02-11 06:49:51 +00:00
qalgorithms QtCore: assorted migrations to QString::asprintf 2015-02-12 19:40:04 +00:00
qarraydata Update copyright headers 2015-02-11 06:49:51 +00:00
qarraydata_strictiterators Make sure all containers compile in strict-iterator mode 2014-02-22 04:38:01 +01:00
qbitarray Update copyright headers 2015-02-11 06:49:51 +00:00
qbytearray Fixed license headers 2015-02-17 18:46:09 +00:00
qbytearraylist Update copyright headers 2015-02-11 06:49:51 +00:00
qbytearraymatcher Update copyright headers 2015-02-11 06:49:51 +00:00
qbytedatabuffer Update copyright headers 2015-02-11 06:49:51 +00:00
qcache Update copyright headers 2015-02-11 06:49:51 +00:00
qchar Update Unicode data up to v7.0 2015-03-27 16:40:06 +00:00
qcollator Replace MAC OS X with OS X 2015-06-30 07:33:31 +00:00
qcommandlineparser Update copyright headers 2015-02-11 06:49:51 +00:00
qcontiguouscache Fix compilation of QContiguousCache::operator= 2015-05-20 17:23:33 +00:00
qcryptographichash Update copyright headers 2015-02-11 06:49:51 +00:00
qdate Update copyright headers 2015-02-11 06:49:51 +00:00
qdatetime QDateTime: Ensure a valid timezone when using the "offset constructor". 2015-09-23 06:46:44 +00:00
qeasingcurve Remove the tests for Ubuntu Oneiric (11.10) 2015-03-17 01:26:13 +00:00
qelapsedtimer Update copyright headers 2015-02-11 06:49:51 +00:00
qexplicitlyshareddatapointer Update copyright headers 2015-02-11 06:49:51 +00:00
qfreelist Update copyright headers 2015-02-11 06:49:51 +00:00
qhash Update copyright headers 2015-02-11 06:49:51 +00:00
qhash_strictiterators Make sure all containers compile in strict-iterator mode 2014-02-22 04:38:01 +01:00
qhashfunctions Fixed license headers 2015-02-17 18:46:09 +00:00
qline Update copyright headers 2015-02-11 06:49:51 +00:00
qlinkedlist Update copyright headers 2015-02-11 06:49:51 +00:00
qlist QList: prepare for tag dispatching based on memory layout 2015-02-17 15:05:07 +00:00
qlist_strictiterators Make sure all containers compile in strict-iterator mode 2014-02-22 04:38:01 +01:00
qlocale Update CLDR to v27 2015-03-27 16:40:16 +00:00
qmap Update copyright headers 2015-02-11 06:49:51 +00:00
qmap_strictiterators Make sure all containers compile in strict-iterator mode 2014-02-22 04:38:01 +01:00
qmargins Update copyright headers 2015-02-11 06:49:51 +00:00
qmessageauthenticationcode Update copyright headers 2015-02-11 06:49:51 +00:00
qpair Update copyright headers 2015-02-11 06:49:51 +00:00
qpoint Update copyright headers 2015-02-11 06:49:51 +00:00
qpointf Fix build of tests on QNX. 2015-03-14 07:05:34 +00:00
qqueue Update copyright headers 2015-02-11 06:49:51 +00:00
qrect Update copyright headers 2015-02-11 06:49:51 +00:00
qregexp QtCore: assorted migrations to QString::asprintf 2015-02-12 19:40:04 +00:00
qregularexpression QRegularExpression: fix matching over QStringRefs 2015-08-18 14:18:48 +00:00
qringbuffer Update copyright headers 2015-02-11 06:49:51 +00:00
qscopedpointer Update copyright headers 2015-02-11 06:49:51 +00:00
qscopedvaluerollback Update copyright headers 2015-02-11 06:49:51 +00:00
qset Update copyright headers 2015-02-11 06:49:51 +00:00
qsharedpointer Fix UB in tst_QSharedPointer::basics() 2016-01-07 13:00:40 +00:00
qsize Update copyright headers 2015-02-11 06:49:51 +00:00
qsizef Update copyright headers 2015-02-11 06:49:51 +00:00
qstl Update copyright headers 2015-02-11 06:49:51 +00:00
qstring Fix comparisons between QByteArray and QString. 2015-09-28 07:42:51 +00:00
qstring_no_cast_from_bytearray Update copyright headers 2015-02-11 06:49:51 +00:00
qstringbuilder Update copyright headers 2015-02-11 06:49:51 +00:00
qstringiterator Update copyright headers 2015-02-11 06:49:51 +00:00
qstringlist Update copyright headers 2015-02-11 06:49:51 +00:00
qstringmatcher Update copyright headers 2015-02-11 06:49:51 +00:00
qstringref Update copyright headers 2015-02-11 06:49:51 +00:00
qtextboundaryfinder Update UCD source files to v7.0 2015-03-27 16:39:53 +00:00
qtime Avoid overflow in QTime::addSecs with too big a number of seconds 2015-08-19 22:13:40 +00:00
qtimeline Update copyright headers 2015-02-11 06:49:51 +00:00
qtimezone QTimeZone: Convert fractional timezones properly. 2015-07-21 22:50:39 +00:00
qvarlengtharray QVarLengthArray: Unit-test that clear() preserves capacity 2015-07-08 14:22:44 +00:00
qvector Merge remote-tracking branch 'origin/5.4' into 5.5 2015-02-24 21:02:08 +01:00
qvector_strictiterators Make sure all containers compile in strict-iterator mode 2014-02-22 04:38:01 +01:00
qversionnumber Update copyright headers 2015-02-11 06:49:51 +00:00
tools.pro tst_QHash: Factor qHash()-related test cases into a separate test 2015-01-05 20:18:51 +01:00