/base/hiviewdfx/hisysevent/frameworks/native/c_wrapper/source/ |
D | hisysevent_c_wrapper.cpp | 46 int cpyLen = 0; // The length of string to be copied is initialized to be 0. in SplitStringToArray() local 53 cpyLen = sliceEnd - sliceBegin + 1; in SplitStringToArray() 54 if ((cpyLen <= 0) || (cpyLen > MAX_LENGTH_OF_EVENT_NAME) || in SplitStringToArray() 55 (memcpy_s(dest[destItemIndex], cpyLen, src + sliceBegin, cpyLen) != EOK)) { in SplitStringToArray() 71 cpyLen = sliceEnd - sliceBegin + 1; in SplitStringToArray() 72 if ((cpyLen <= 0) || (cpyLen > MAX_LENGTH_OF_EVENT_NAME) || (destItemIndex >= destSize) || in SplitStringToArray() 73 (memcpy_s(dest[destItemIndex], cpyLen, src + sliceBegin, cpyLen) != EOK)) { in SplitStringToArray()
|
/base/hiviewdfx/faultloggerd/common/cutil/ |
D | musl_cutil.h | 63 size_t cpyLen = strlen(nameFilter) + 1; in ReadStringFromFile() local 64 if (cpyLen > dstSz) { in ReadStringFromFile() 65 cpyLen = dstSz; in ReadStringFromFile() 67 memcpy(dst, nameFilter, cpyLen); in ReadStringFromFile()
|
/base/telephony/core_service/utils/common/src/ |
D | telephony_config.cpp | 65 size_t cpyLen = maxCap.length() + 1; in ConvertCharToInt() local 66 if (strcpy_s(content, cpyLen, maxCap.c_str()) != EOK) { in ConvertCharToInt()
|
/base/telephony/cellular_call/services/control/src/ |
D | cellular_call_supplement.cpp | 491 size_t cpyLen = strlen(infoA.c_str()) + 1; in HandleCallRestriction() local 493 …if (strcpy_s(utCommand->password, cpyLen > maxCpyLen ? maxCpyLen : cpyLen, infoA.c_str()) != EOK) { in HandleCallRestriction() 673 size_t cpyLen = strlen(queryResult.number.c_str()) + 1; in BuildCallForwardQueryInfo() local 674 if (strcpy_s(response.number, cpyLen, queryResult.number.c_str()) != EOK) { in BuildCallForwardQueryInfo() 1040 size_t cpyLen = strlen(info.c_str()) + 1; in SetCallRestriction() local 1042 … if (strcpy_s(utCommand->password, cpyLen > maxCpyLen ? maxCpyLen : cpyLen, info.c_str()) != EOK) { in SetCallRestriction() 1364 size_t cpyLen = strlen(QUERY_SS_FAILED.c_str()) + 1; in GetMessage() local 1365 if (strcpy_s(mmiCodeInfo.message, cpyLen, QUERY_SS_FAILED.c_str()) != EOK) { in GetMessage() 1372 size_t cpyLen = strlen(TRANSFER_UNCONDITIONAL_SUCCESS.c_str()) + 1; in GetMessage() local 1373 … if (strcpy_s(mmiCodeInfo.message, cpyLen, TRANSFER_UNCONDITIONAL_SUCCESS.c_str()) != EOK) { in GetMessage() [all …]
|
D | cs_control.cpp | 489 size_t cpyLen = strlen(callInfo.number.c_str()) + 1; in EncapsulationCallReportInfo() local 490 if (cpyLen > static_cast<size_t>(kMaxNumberLen + 1)) { in EncapsulationCallReportInfo() 494 if (strcpy_s(callReportInfo.accountNum, cpyLen, callInfo.number.c_str()) != EOK) { in EncapsulationCallReportInfo()
|
D | ims_control.cpp | 473 size_t cpyLen = strlen(callInfo.number.c_str()) + 1; in EncapsulationCallReportInfo() local 474 if (cpyLen > static_cast<size_t>(kMaxNumberLen + 1)) { in EncapsulationCallReportInfo() 478 if (strcpy_s(callReportInfo.accountNum, cpyLen, callInfo.number.c_str()) != EOK) { in EncapsulationCallReportInfo()
|
/base/update/updater/services/diffpatch/diff/ |
D | blocks_diff.cpp | 451 int64_t cpyLen = static_cast<int64_t>(IGMDIFF_LIMIT_UNIT); in WriteDiffData() local 452 …cpyLen = (offset + cpyLen > controlDatas[i].diffLength) ? (controlDatas[i].diffLength - offset) : … in WriteDiffData() 453 for (int64_t k = 0; k < cpyLen; k++) { in WriteDiffData() 457 … BlockBuffer srcData = {reinterpret_cast<uint8_t*>(diffData.data()), static_cast<size_t>(cpyLen)}; in WriteDiffData() 463 offset += cpyLen; in WriteDiffData()
|
/base/telephony/cellular_call/services/connection/src/ |
D | supplement_request_cs.cpp | 106 size_t cpyLen = strlen(pw.c_str()) + 1; in SetCallRestrictionRequest() local 108 …if (strcpy_s(callRestrictionParam.password, cpyLen > maxCpyLen ? maxCpyLen : cpyLen, pw.c_str()) !… in SetCallRestrictionRequest()
|
D | cellular_call_connection_ims.cpp | 38 size_t cpyLen = strlen(phoneNumber_.c_str()) + 1; in DialRequest() local 39 if (cpyLen > static_cast<size_t>(kMaxNumberLength)) { in DialRequest() 43 if (strcpy_s(callInfo.phoneNum, cpyLen, phoneNumber_.c_str()) != EOK) { in DialRequest()
|
/base/telephony/call_manager/services/call/call_state_observer/src/ |
D | call_data_base_helper.cpp | 171 size_t cpyLen = displayName.length() + 1; in Query() local 177 if (strcpy_s(contactInfo.name, cpyLen, displayName.c_str()) != EOK) { in Query()
|
/base/telephony/cellular_call/services/common/src/ |
D | cellular_call_hisysevent.cpp | 354 size_t cpyLen = callForwardingNumber_.length() + 1; in GetCallForwardingInfo() local 358 if (strcpy_s(info.number, cpyLen, callForwardingNumber_.c_str()) != EOK) { in GetCallForwardingInfo()
|
/base/telephony/core_service/services/tel_ril/test/ |
D | tel_ril_test.cpp | 1760 size_t cpyLen = strlen(code.c_str()) + 1; in OnRequestSetCallRestrictionTest() local 1762 …if (strcpy_s(restriction.password, cpyLen > maxCpyLen ? maxCpyLen : cpyLen, code.c_str()) != EOK) { in OnRequestSetCallRestrictionTest()
|