mirror of
https://gitee.com/openharmony/communication_ipc
synced 2024-11-23 07:50:24 +00:00
fix:添加白名单校验
Signed-off-by: weimengxue <weimengxue1@h-partners.com>
This commit is contained in:
parent
660304a523
commit
74395759ee
@ -873,7 +873,15 @@ void BinderInvoker::OnRemoveRecipientDone()
|
||||
uintptr_t cookie = input_.ReadPointer();
|
||||
auto *proxy = reinterpret_cast<IPCObjectProxy *>(cookie);
|
||||
if (proxy != nullptr) {
|
||||
proxy->DecStrongRef(this);
|
||||
ProcessSkeleton *current = ProcessSkeleton::GetInstance();
|
||||
std::u16string desc;
|
||||
if ((current != nullptr) && !current->IsValidObject(proxy, desc)) {
|
||||
ZLOGE(LABEL, "%{public}u is invalid", ProcessSkeleton::ConvertAddr(proxy));
|
||||
} else {
|
||||
std::string descTemp = Str16ToStr8(desc);
|
||||
CrashObjDumper dumper(descTemp.c_str());
|
||||
proxy->DecStrongRef(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user