qt6-bb10/tests/auto/corelib/tools/qsharedpointer
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
..
.gitignore
externaltests.cpp Update copyright headers 2015-02-11 06:49:51 +00:00
externaltests.h Update copyright headers 2015-02-11 06:49:51 +00:00
externaltests.pri fix usage of wince scope 2015-06-05 10:29:10 +00:00
forwarddeclared.cpp Update copyright headers 2015-02-11 06:49:51 +00:00
forwarddeclared.h Update copyright headers 2015-02-11 06:49:51 +00:00
nontracked.cpp Update copyright headers 2015-02-11 06:49:51 +00:00
nontracked.h Update copyright headers 2015-02-11 06:49:51 +00:00
qsharedpointer.pro Don't increase the reference count if dynamic_cast failed 2013-01-04 17:30:19 +01:00
tst_qsharedpointer.cpp Fix UB in tst_QSharedPointer::basics() 2016-01-07 13:00:40 +00:00
wrapper.cpp Update copyright headers 2015-02-11 06:49:51 +00:00
wrapper.h Update copyright headers 2015-02-11 06:49:51 +00:00