Searched refs:minCpLen (Results 1 – 2 of 2) sorted by relevance
/third_party/mindspore/third_party/securec/src/ |
D | strncpy_s.c | 109 size_t minCpLen; /* use it to store the maxi length limit */ in strncpy_s() local 111 minCpLen = SecStrMinLen(strSrc, count); /* no ending terminator */ in strncpy_s() 119 minCpLen = SecStrMinLen(strSrc, tmpCount); in strncpy_s() 120 if (minCpLen == destMax) { in strncpy_s() 126 if (SECUREC_STRING_NO_OVERLAP(strDest, strSrc, minCpLen) || strDest == strSrc) { in strncpy_s() 128 SecDoMemcpy(strDest, strSrc, minCpLen); /* copy string without terminator */ in strncpy_s() 129 strDest[minCpLen] = '\0'; in strncpy_s()
|
/third_party/bounds_checking_function/src/ |
D | strncpy_s.c | 107 size_t minCpLen; /* Use it to store the maxi length limit */ in strncpy_s() local 109 SECUREC_CALC_STR_LEN(strSrc, count, &minCpLen); /* No ending terminator */ in strncpy_s() 117 SECUREC_CALC_STR_LEN(strSrc, tmpCount, &minCpLen); /* No ending terminator */ in strncpy_s() 118 if (minCpLen == destMax) { in strncpy_s() 124 if (SECUREC_STRING_NO_OVERLAP(strDest, strSrc, minCpLen) || strDest == strSrc) { in strncpy_s() 126 … SECUREC_MEMCPY_WARP_OPT(strDest, strSrc, minCpLen); /* Copy string without terminator */ in strncpy_s() 127 strDest[minCpLen] = '\0'; in strncpy_s()
|