Home
last modified time | relevance | path

Searched refs:MAX_STREAM_LEN (Results 1 – 10 of 10) sorted by relevance

/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/rawstreamdata_fuzzer/
H A Drawstreamdata_fuzzer.cpp29 if ((data == nullptr) || (size < Communication::SoftBus::MAX_STREAM_LEN)) { in InitStreamDataTest()
32 char *buf = new char[Communication::SoftBus::MAX_STREAM_LEN + 1]; in InitStreamDataTest()
37 if (memcpy_s(buf, Communication::SoftBus::MAX_STREAM_LEN + 1, in InitStreamDataTest()
38 data, Communication::SoftBus::MAX_STREAM_LEN) != EOK) { in InitStreamDataTest()
43 char *ext = new char[Communication::SoftBus::MAX_STREAM_LEN + 1]; in InitStreamDataTest()
50 if (memcpy_s(ext, Communication::SoftBus::MAX_STREAM_LEN + 1, in InitStreamDataTest()
51 data, Communication::SoftBus::MAX_STREAM_LEN) != EOK) { in InitStreamDataTest()
60 … rawstreamdata.InitStreamData(std::move(inputbuf), Communication::SoftBus::MAX_STREAM_LEN + 1, in InitStreamDataTest()
61 std::move(inputext), Communication::SoftBus::MAX_STREAM_LEN + 1); in InitStreamDataTest()
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/streamcommondata_fuzzer/
H A Dstreamcommondata_fuzzer.cpp30 if ((data == nullptr) || (size < Communication::SoftBus::MAX_STREAM_LEN)) { in InitStreamDataTest()
33 char *buf = new char[Communication::SoftBus::MAX_STREAM_LEN + 1]; in InitStreamDataTest()
38 if (memcpy_s(buf, Communication::SoftBus::MAX_STREAM_LEN + 1, in InitStreamDataTest()
39 data, Communication::SoftBus::MAX_STREAM_LEN) != EOK) { in InitStreamDataTest()
44 char *ext = new char[Communication::SoftBus::MAX_STREAM_LEN + 1]; in InitStreamDataTest()
51 if (memcpy_s(ext, Communication::SoftBus::MAX_STREAM_LEN + 1, in InitStreamDataTest()
52 data, Communication::SoftBus::MAX_STREAM_LEN) != EOK) { in InitStreamDataTest()
61 … streamcommondata.InitStreamData(std::move(inputbuf), Communication::SoftBus::MAX_STREAM_LEN + 1, in InitStreamDataTest()
62 std::move(inputext), Communication::SoftBus::MAX_STREAM_LEN + 1); in InitStreamDataTest()
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/streamdepacketizer_fuzzer/
H A Dstreamdepacketizer_fuzzer.cpp31 if ((data == nullptr) || (size < Communication::SoftBus::MAX_STREAM_LEN - OVERHEAD_LEN)) { in DepacketizeHeaderTest()
34 char tmp[Communication::SoftBus::MAX_STREAM_LEN - OVERHEAD_LEN + 1] = {0}; in DepacketizeHeaderTest()
45 if ((data == nullptr) || (size < Communication::SoftBus::MAX_STREAM_LEN - OVERHEAD_LEN)) { in DepacketizeBufferTest()
48 char tmp[Communication::SoftBus::MAX_STREAM_LEN - OVERHEAD_LEN + 1] = {0}; in DepacketizeBufferTest()
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/udp/stream/libsoftbus_stream/stream_depacketizer_test/
H A Dstream_depacketizer_test.cpp97 char header[Communication::SoftBus::MAX_STREAM_LEN - OVERHEAD_LEN + 1] = {0};
98 char buffer[Communication::SoftBus::MAX_STREAM_LEN - OVERHEAD_LEN + 1] = {0};
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/udp/stream/libsoftbus_stream/raw_stream_data_test/
H A Draw_stream_data_test.cpp187 ssize_t bufLen = MAX_STREAM_LEN;
194 bufLen = MAX_STREAM_LEN + 1;
/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/stream/libsoftbus_stream/include/
H A Dstream_common.h167 static constexpr int MAX_STREAM_LEN = 2 * 1024 * 1024; variable
/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/stream/libsoftbus_stream/
H A Dstream_depacketizer.cpp54 if (dataLength_ <= 0 || dataLength_ > MAX_STREAM_LEN) { in DepacketizeBuffer()
H A Draw_stream_data.cpp42 if (bufLen <= 0 || bufLen > MAX_STREAM_LEN) { in MakeRawStream()
H A Dvtp_stream_socket.cpp1140 if (dataLength <= 0 || dataLength > MAX_STREAM_LEN) { in DoStreamRecv()
/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/stream/adaptor/src/
H A Dclient_trans_udp_stream_interface.cpp82 if (inData->bufLen < 0 || inData->bufLen > Communication::SoftBus::MAX_STREAM_LEN || in ProcessAdaptorAndEncrypt()
83 … (ext != nullptr && (ext->bufLen < 0 || ext->bufLen > Communication::SoftBus::MAX_STREAM_LEN))) { in ProcessAdaptorAndEncrypt()