Home
last modified time | relevance | path

Searched refs:bodySize (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/foundation/multimodalinput/input/test/fuzztest/subscribekeyevent_fuzzer/
H A Dsubscribekeyevent_fuzzer.cpp45 size_t bodySize = sizeof(object); in GetObject() local
46 if (bodySize > size) { in GetObject()
49 errno_t retNum = memcpy_s(&object, bodySize, data, bodySize); in GetObject()
53 return bodySize; in GetObject()
/ohos5.0/base/request/request/test/unittest/cpp_test/fwkTest/src/
H A Dresponse_message_receiver_test.cpp414 int16_t bodySize = 456; // 456 is except num variable
416 sizeof(bodySize)),
418 pos += sizeof(bodySize);
421 bodySize = 0;
424 EXPECT_EQ(ResponseMessageReceiver::MsgHeaderParcel(msgId, msgType, bodySize, parcel, size), -1);
427 EXPECT_EQ(ResponseMessageReceiver::MsgHeaderParcel(msgId, msgType, bodySize, parcel, size), -1);
447 EXPECT_EQ(ResponseMessageReceiver::MsgHeaderParcel(msgId, msgType, bodySize, parcel, size), 0);
448 EXPECT_EQ(bodySize, 456); // 456 is except num
723 int16_t bodySize = 456; // 456 is except num variable
725 sizeof(bodySize)),
[all …]
/ohos5.0/base/request/request/test/fuzztest/downloaduploadmanager_fuzzer/
H A Ddownloaduploadmanager_fuzzer.cpp652 int16_t bodySize = 456; // 456 is except num in ResponseMessageFuzzTestMsgHeaderParcel() local
654 … pos, static_cast<size_t>(arraySize - pos), reinterpret_cast<void *>(&bodySize), sizeof(bodySize)); in ResponseMessageFuzzTestMsgHeaderParcel()
658 pos += sizeof(bodySize); in ResponseMessageFuzzTestMsgHeaderParcel()
661 bodySize = 0; in ResponseMessageFuzzTestMsgHeaderParcel()
664 ResponseMessageReceiver::MsgHeaderParcel(msgId, msgType, bodySize, parcel, testSize); in ResponseMessageFuzzTestMsgHeaderParcel()
667 ResponseMessageReceiver::MsgHeaderParcel(msgId, msgType, bodySize, parcel, testSize); in ResponseMessageFuzzTestMsgHeaderParcel()
675 ResponseMessageReceiver::MsgHeaderParcel(msgId, msgType, bodySize, parcel, testSize); in ResponseMessageFuzzTestMsgHeaderParcel()
678 ResponseMessageReceiver::MsgHeaderParcel(msgId, msgType, bodySize, parcel, testSize); in ResponseMessageFuzzTestMsgHeaderParcel()
681 …ResponseMessageReceiver::MsgHeaderParcel(msgId, msgType, bodySize, parcel, testSize); // 123456 is… in ResponseMessageFuzzTestMsgHeaderParcel()
684 ResponseMessageReceiver::MsgHeaderParcel(msgId, msgType, bodySize, parcel, testSize); in ResponseMessageFuzzTestMsgHeaderParcel()
[all …]
/ohos5.0/base/request/request/frameworks/native/include/
H A Dresponse_message_receiver.h57 …static int32_t MsgHeaderParcel(int32_t &msgId, int16_t &msgType, int16_t &bodySize, char *&parcel,…
/ohos5.0/base/request/request/frameworks/native/src/
H A Dresponse_message_receiver.cpp232 int32_t &msgId, int16_t &msgType, int16_t &bodySize, char *&parcel, int32_t &size) in MsgHeaderParcel() argument
249 if (Int16FromParcel(bodySize, parcel, size) != 0) { in MsgHeaderParcel()