Home
last modified time | relevance | path

Searched refs:srcStrLen (Results 1 – 3 of 3) sorted by relevance

/third_party/bounds_checking_function/src/
Dwcsncpy_s.c19 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()
Dwcscpy_s.c19 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()
Dstrcpy_s.c330 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()