qt5base-lts/tests/auto/dbus/qdbusconnection
Ievgenii Meshcheriakov 90d3c5b951 QDBusServer: Fix potential crash when private pointer is null
Check that the private pointer is not null before attempting
to dereference it. This can happen, for example, when
a QDBusServer instance was constructed with an empty string
as address. Attempting to destroy an object constructed
this way was causing a segmentation fault on Linux.

Add a test case that attempts to construct a QDBusServer
object with an empty string as address to check that this
does not cause a segmentation fault anymore.

Pick-to: 6.5 6.2
Change-Id: I5fe63134026e2a9f509b61d452285891b1ec624d
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2023-05-02 14:54:19 +02:00
..
.gitignore Moved dbus autotests into new directory structure 2011-09-01 09:37:08 +02:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00
tst_qdbusconnection.cpp QDBusServer: Fix potential crash when private pointer is null 2023-05-02 14:54:19 +02:00
tst_qdbusconnection.h QDBusServer: Fix potential crash when private pointer is null 2023-05-02 14:54:19 +02:00