From aa697ac48f7557685f734a3c546ec7c10d351dc8 Mon Sep 17 00:00:00 2001 From: Vitalii Arteev Date: Mon, 2 Nov 2020 11:46:43 +0100 Subject: [PATCH] Fix heap-use-after-free for IPCProxyBinderBase --- src/ipc/ipc-common/IPCProxyBinderBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipc/ipc-common/IPCProxyBinderBase.cpp b/src/ipc/ipc-common/IPCProxyBinderBase.cpp index 33b6e0b8..1e02026a 100644 --- a/src/ipc/ipc-common/IPCProxyBinderBase.cpp +++ b/src/ipc/ipc-common/IPCProxyBinderBase.cpp @@ -47,7 +47,7 @@ void IPCProxyBinderBase::connectToServer() bool IPCProxyBinderBase::isReadyToConnect() const { - return m_componentCompleted && enabled() && !objectPath().isEmpty(); + return m_componentCompleted && enabled() && !objectPath().isNull() && !objectPath().isEmpty(); } void IPCProxyBinderBase::checkInit()