mirror of
https://github.com/openharmony/utils_native.git
synced 2026-07-21 01:25:42 -04:00
fix utils_parcel_test codex
Signed-off-by: hongtao <hongtao11@huawei.com>
This commit is contained in:
@@ -87,6 +87,9 @@ bool SendData(void *&buffer, size_t size, const uint8_t *data)
|
||||
return false;
|
||||
}
|
||||
buffer = malloc(size);
|
||||
if (buffer == nullptr) {
|
||||
return false;
|
||||
}
|
||||
if (memcpy_s(buffer, size, data, size) != EOK) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user