From 819dddeb5bfcd05999e259ba31feac4ddc6c861c Mon Sep 17 00:00:00 2001 From: wangkai Date: Sun, 25 Sep 2022 17:16:42 +0800 Subject: [PATCH 1/2] fixed 3a21bdc from https://gitee.com/wangkai0102/notification_distributed_notification_service/pulls/598 change Signed-off-by: wangkai --- frameworks/test/moduletest/mock/blob.cpp | 2 +- services/test/moduletest/mock/blob.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/test/moduletest/mock/blob.cpp b/frameworks/test/moduletest/mock/blob.cpp index 540888d0f..31b20ed2d 100644 --- a/frameworks/test/moduletest/mock/blob.cpp +++ b/frameworks/test/moduletest/mock/blob.cpp @@ -172,7 +172,7 @@ Blob *Blob::Unmarshalling(Parcel &parcel) } /* write blob size and data to memory buffer. return error when bufferLeftSize not enough. */ -bool Blob::WriteToBuffer(uint8_t *&cursorPtr, int &bufferLeftSize) const +bool Blob::WriteToBuffer(uint8_t *&cursorPtr, int bufferLeftSize) const { if (cursorPtr == nullptr || bufferLeftSize < static_cast(blob_.size() + sizeof(int))) { return false; diff --git a/services/test/moduletest/mock/blob.cpp b/services/test/moduletest/mock/blob.cpp index 540888d0f..31b20ed2d 100644 --- a/services/test/moduletest/mock/blob.cpp +++ b/services/test/moduletest/mock/blob.cpp @@ -172,7 +172,7 @@ Blob *Blob::Unmarshalling(Parcel &parcel) } /* write blob size and data to memory buffer. return error when bufferLeftSize not enough. */ -bool Blob::WriteToBuffer(uint8_t *&cursorPtr, int &bufferLeftSize) const +bool Blob::WriteToBuffer(uint8_t *&cursorPtr, int bufferLeftSize) const { if (cursorPtr == nullptr || bufferLeftSize < static_cast(blob_.size() + sizeof(int))) { return false; -- Gitee From 8eef97ee31575967f19008d630ed09cd1e9871c7 Mon Sep 17 00:00:00 2001 From: wangkai Date: Sun, 25 Sep 2022 16:28:36 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fixed=20c0270d7=20from=20https://gitee.com/?= =?UTF-8?q?wangkai0102/notification=5Fdistributed=5Fnotification=5Fservice?= =?UTF-8?q?/pulls/598=20blob=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangkai --- services/ans/test/unittest/mock/blob.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/ans/test/unittest/mock/blob.cpp b/services/ans/test/unittest/mock/blob.cpp index 540888d0f..31b20ed2d 100644 --- a/services/ans/test/unittest/mock/blob.cpp +++ b/services/ans/test/unittest/mock/blob.cpp @@ -172,7 +172,7 @@ Blob *Blob::Unmarshalling(Parcel &parcel) } /* write blob size and data to memory buffer. return error when bufferLeftSize not enough. */ -bool Blob::WriteToBuffer(uint8_t *&cursorPtr, int &bufferLeftSize) const +bool Blob::WriteToBuffer(uint8_t *&cursorPtr, int bufferLeftSize) const { if (cursorPtr == nullptr || bufferLeftSize < static_cast(blob_.size() + sizeof(int))) { return false; -- Gitee