未验证 提交 393968c5 编写于 作者: O openharmony_ci 提交者: Gitee

!215 修复binder_invoker.cpp文件中的OnTransaction函数存在空指针引用问题(挑单I4U26P)

Merge pull request !215 from shann_wen/OpenHarmony-3.0-LTS
......@@ -433,7 +433,9 @@ void BinderInvoker::OnTransaction(const uint8_t *buffer)
auto *refs = reinterpret_cast<IRemoteObject *>(tr->target.ptr);
if ((refs != nullptr) && (tr->cookie) && (refs->AttemptIncStrongRef(this))) {
targetObject = reinterpret_cast<IPCObjectStub *>(tr->cookie);
targetObject->DecStrongRef(this);
if (targetObject != nullptr) {
targetObject->DecStrongRef(this);
}
}
} else {
targetObject = IPCProcessSkeleton::GetCurrent()->GetRegistryObject();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册