Skip to content

Commit

Permalink
Fix heap-use-after-free for IPCProxyBinderBase
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalii Arteev committed Nov 2, 2020
1 parent 3050bb4 commit aa697ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ipc/ipc-common/IPCProxyBinderBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit aa697ac

Please sign in to comment.