Searched refs:srcStrLen (Results 1 – 3 of 3) sorted by relevance
/third_party/bounds_checking_function/src/ |
D | wcsncpy_s.c | 19 size_t srcStrLen; in SecDoCpyLimitW() local 21 SECUREC_CALC_WSTR_LEN(strSrc, count, &srcStrLen); in SecDoCpyLimitW() 23 SECUREC_CALC_WSTR_LEN(strSrc, destMax, &srcStrLen); in SecDoCpyLimitW() 25 if (srcStrLen == destMax) { in SecDoCpyLimitW() 33 if (SECUREC_STRING_NO_OVERLAP(strDest, strSrc, srcStrLen)) { in SecDoCpyLimitW() 35 SECUREC_MEMCPY_WARP_OPT(strDest, strSrc, srcStrLen * sizeof(wchar_t)); in SecDoCpyLimitW() 36 *(strDest + srcStrLen) = L'\0'; in SecDoCpyLimitW()
|
D | wcscpy_s.c | 19 size_t srcStrLen; in SecDoCpyW() local 20 SECUREC_CALC_WSTR_LEN(strSrc, destMax, &srcStrLen); in SecDoCpyW() 22 if (srcStrLen == destMax) { in SecDoCpyW() 31 if (SECUREC_STRING_NO_OVERLAP(strDest, strSrc, srcStrLen)) { in SecDoCpyW() 33 SECUREC_MEMCPY_WARP_OPT(strDest, strSrc, (srcStrLen + 1) * sizeof(wchar_t)); in SecDoCpyW()
|
D | strcpy_s.c | 330 size_t srcStrLen; in strcpy_s() local 331 SECUREC_CALC_STR_LEN(strSrc, destMax, &srcStrLen); in strcpy_s() 332 ++srcStrLen; /* The length include '\0' */ in strcpy_s() 334 if (srcStrLen <= destMax) { in strcpy_s() 336 if (SECUREC_MEMORY_NO_OVERLAP(strDest, strSrc, srcStrLen)) { in strcpy_s() 338 SECUREC_STRCPY_OPT(strDest, strSrc, srcStrLen); in strcpy_s()
|