qt5base-lts/tests/auto
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
..
android Fix typo in test results report for android 2015-07-28 21:16:19 +00:00
bic/data bic: Add 5.{1,2,3,4}.0 bic data for linux-gcc-amd64 2015-02-14 06:54:20 +00:00
cmake CMake: Fix regression with quoted OPTIONS parameter 2015-03-11 07:31:33 +00:00
compilerwarnings/data Fixed license headers 2015-02-17 18:46:09 +00:00
concurrent Fix build of tests on QNX. 2015-03-14 07:05:34 +00:00
corelib Fix UB in tst_QSharedPointer::basics() 2016-01-07 13:00:40 +00:00
dbus Autotest: rename sub tests from "test" to something meaningful 2015-07-18 02:22:40 +00:00
gui Allow socket events processing with a foreign event loop on Windows 2016-01-05 13:05:35 +00:00
guiapplauncher Fix path to examples part of tst_GuiAppLauncher 2015-02-13 07:28:15 +00:00
installed_cmake Add a unit test for testing Qt in its install location. 2013-07-02 23:08:54 +02:00
network QAbstractSocket: do not enable read notifications on TCP in bind() 2015-12-24 14:05:26 +00:00
opengl Update copyright headers 2015-02-11 06:49:51 +00:00
other Fix timeout calculations using qt_subtract_from_timeout 2015-12-21 22:26:40 +00:00
printsupport Update copyright headers 2015-02-11 06:49:51 +00:00
shared Update copyright headers 2015-02-11 06:49:51 +00:00
sql fix usage of wince scope 2015-06-05 10:29:10 +00:00
testlib Change how QDebug escapes QStrings in the output 2015-08-06 04:53:38 +00:00
tools Make QDir::relativeFilePath() return "." for a path to itself. 2015-06-24 15:43:58 +00:00
widgets Fix UB in tst_QDialog::showExtension() 2016-01-07 13:00:32 +00:00
xml Update copyright headers 2015-02-11 06:49:51 +00:00
auto.pro fix usage of wince scope 2015-06-05 10:29:10 +00:00
network-settings.h Update copyright headers 2015-02-11 06:49:51 +00:00
qtest-config.h Update copyright headers 2015-02-11 06:49:51 +00:00
test.pl Update copyright headers 2015-02-11 06:49:51 +00:00