mirror of
https://gitee.com/openharmony/communication_ipc
synced 2024-11-23 07:50:24 +00:00
!1495 BINDER_TYPE_FDR and BINDER_TYPE_PTR
Merge pull request !1495 from hanlin15/master_sec
This commit is contained in:
commit
9271aeab54
@ -200,10 +200,12 @@ bool DBinderBaseInvoker<T>::IRemoteObjectTranslateWhenRcv(char *dataBuffer, bind
|
|||||||
ZLOGE(LOG_LABEL, "fail to translate big raw data");
|
ZLOGE(LOG_LABEL, "fail to translate big raw data");
|
||||||
// do nothing
|
// do nothing
|
||||||
}
|
}
|
||||||
|
binderObject->handle = -1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
ZLOGE(LOG_LABEL, "do not support this type:%{public}u of translation", binderObject->hdr.type);
|
ZLOGE(LOG_LABEL, "do not support this type:%{public}u of translation", binderObject->hdr.type);
|
||||||
|
binderObject->hdr.type = BINDER_TYPE_INVALID_TYPE;
|
||||||
// do nothing
|
// do nothing
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -282,6 +282,7 @@ enum {
|
|||||||
BINDER_TYPE_FDR = B_PACK_CHARS('f', 'd', 'r', B_TYPE_LARGE),
|
BINDER_TYPE_FDR = B_PACK_CHARS('f', 'd', 'r', B_TYPE_LARGE),
|
||||||
BINDER_TYPE_INVALID_HANDLE = B_PACK_CHARS('r', 'h', 'e', B_TYPE_LARGE),
|
BINDER_TYPE_INVALID_HANDLE = B_PACK_CHARS('r', 'h', 'e', B_TYPE_LARGE),
|
||||||
BINDER_TYPE_INVALID_BINDER = B_PACK_CHARS('r', 'b', 'e', B_TYPE_LARGE),
|
BINDER_TYPE_INVALID_BINDER = B_PACK_CHARS('r', 'b', 'e', B_TYPE_LARGE),
|
||||||
|
BINDER_TYPE_INVALID_TYPE = B_PACK_CHARS('r', 't', 'e', B_TYPE_LARGE),
|
||||||
};
|
};
|
||||||
|
|
||||||
struct binder_ptr_count {
|
struct binder_ptr_count {
|
||||||
|
Loading…
Reference in New Issue
Block a user