mirror of
https://gitee.com/openharmony/communication_ipc
synced 2025-02-18 15:59:23 +00:00
fix: rectify Warning
Signed-off-by: jason <jialinbo@huawei.com>
This commit is contained in:
parent
fcf1a060ac
commit
d8158c47a5
@ -346,7 +346,8 @@ bool DBinderBaseInvoker<T>::MoveTransData2Buffer(std::shared_ptr<T> sessionObjec
|
||||
sessionBuff->UpdateSendBuffer(sendSize);
|
||||
ssize_t writeCursor = sessionBuff->GetSendBufferWriteCursor();
|
||||
ssize_t readCursor = sessionBuff->GetSendBufferReadCursor();
|
||||
if (writeCursor < 0 || readCursor < 0 || sendSize > sessionBuff->GetSendBufferSize() - writeCursor) {
|
||||
if (writeCursor < 0 || readCursor < 0 ||
|
||||
sendSize + static_cast<uint32_t>(writeCursor) > sessionBuff->GetSendBufferSize()) {
|
||||
sessionBuff->ReleaseSendBufferLock();
|
||||
ZLOGE(LOG_LABEL, "sender's data is large than idle buffer, writecursor:%{public}zd readcursor:%{public}zd,\
|
||||
sendSize:%{public}u bufferSize:%{public}u",
|
||||
|
@ -651,7 +651,7 @@ void BinderInvoker::Transaction(const uint8_t *buffer)
|
||||
callerPid_, callerRealPid_, callerUid_, callerTokenID_, firstTokenID_, 0 };
|
||||
uint32_t oldStatus = status_;
|
||||
callerPid_ = tr->sender_pid;
|
||||
callerUid_ = tr->sender_euid;
|
||||
callerUid_ = static_cast<pid_t>(tr->sender_euid);
|
||||
callerRealPid_ = callerPid_;
|
||||
if (binderConnector_ != nullptr && binderConnector_->IsRealPidSupported()) {
|
||||
GetSenderInfo(callerTokenID_, firstTokenID_, callerRealPid_);
|
||||
|
Loading…
x
Reference in New Issue
Block a user