!1495 BINDER_TYPE_FDR and BINDER_TYPE_PTR

Merge pull request !1495 from hanlin15/master_sec
This commit is contained in:
openharmony_ci 2024-11-01 08:53:25 +00:00 committed by Gitee
commit 9271aeab54
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 3 additions and 0 deletions

View File

@ -200,10 +200,12 @@ bool DBinderBaseInvoker<T>::IRemoteObjectTranslateWhenRcv(char *dataBuffer, bind
ZLOGE(LOG_LABEL, "fail to translate big raw data");
// do nothing
}
binderObject->handle = -1;
break;
}
default: {
ZLOGE(LOG_LABEL, "do not support this type:%{public}u of translation", binderObject->hdr.type);
binderObject->hdr.type = BINDER_TYPE_INVALID_TYPE;
// do nothing
break;
}

View File

@ -282,6 +282,7 @@ enum {
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_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 {