/third_party/bounds_checking_function/src/ |
D | strcpy_s.c | 22 #define SECUREC_STRCPY_PARAM_OK(strDest, destMax, strSrc) ((destMax) > 0 && \ argument 23 …(destMax) <= SECUREC_STRING_MAX_LEN && (strDest) != NULL && (strSrc) != NULL && (strDest) != (strS… 30 #define SECUREC_SMALL_STR_COPY(strDest, strSrc, lenWithTerm) do { \ argument 31 if (SECUREC_ADDR_ALIGNED_8(strDest) && SECUREC_ADDR_ALIGNED_8(strSrc)) { \ 35 *(strDest) = *(strSrc); \ 38 SECUREC_COPY_VALUE_BY_STRUCT((strDest), (strSrc), 2); \ 41 SECUREC_COPY_VALUE_BY_STRUCT((strDest), (strSrc), 3); \ 44 SECUREC_COPY_VALUE_BY_STRUCT((strDest), (strSrc), 4); \ 47 SECUREC_COPY_VALUE_BY_STRUCT((strDest), (strSrc), 5); \ 50 SECUREC_COPY_VALUE_BY_STRUCT((strDest), (strSrc), 6); \ [all …]
|
D | strncpy_s.c | 19 #define SECUREC_STRNCPY_PARAM_OK(strDest, destMax, strSrc, count) \ argument 20 …(((destMax) > 0 && (destMax) <= SECUREC_STRING_MAX_LEN && (strDest) != NULL && (strSrc) != NULL &&… 23 #define SECUREC_STRNCPY_PARAM_OK(strDest, destMax, strSrc, count) \ argument 24 …(((destMax) > 0 && (destMax) <= SECUREC_STRING_MAX_LEN && (strDest) != NULL && (strSrc) != NULL &&… 31 SECUREC_INLINE errno_t CheckSrcCountRange(char *strDest, size_t destMax, const char *strSrc, size_t… in CheckSrcCountRange() argument 44 strDest[0] = '\0'; in CheckSrcCountRange() 54 errno_t strncpy_error(char *strDest, size_t destMax, const char *strSrc, size_t count) in strncpy_error() argument 60 if (strDest == NULL || strSrc == NULL) { in strncpy_error() 62 if (strDest != NULL) { in strncpy_error() 63 strDest[0] = '\0'; in strncpy_error() [all …]
|
D | strncat_s.c | 21 SECUREC_INLINE errno_t SecDoCatLimit(char *strDest, size_t destMax, const char *strSrc, size_t coun… in SecDoCatLimit() argument 25 SECUREC_CALC_STR_LEN(strDest, destMax, &destLen); in SecDoCatLimit() 32 if (SECUREC_CAT_STRING_IS_OVERLAP(strDest, destLen, strSrc, srcLen)) { in SecDoCatLimit() 33 strDest[0] = '\0'; in SecDoCatLimit() 34 if (strDest + destLen <= strSrc && destLen == destMax) { in SecDoCatLimit() 41 if (srcLen + destLen >= destMax || strDest == strSrc) { in SecDoCatLimit() 42 strDest[0] = '\0'; in SecDoCatLimit() 50 SECUREC_MEMCPY_WARP_OPT(strDest + destLen, strSrc, srcLen); /* No terminator */ in SecDoCatLimit() 51 *(strDest + destLen + srcLen) = '\0'; in SecDoCatLimit() 88 errno_t strncat_s(char *strDest, size_t destMax, const char *strSrc, size_t count) in strncat_s() argument [all …]
|
D | wcsncat_s.c | 21 SECUREC_INLINE errno_t SecDoCatLimitW(wchar_t *strDest, size_t destMax, const wchar_t *strSrc, size… in SecDoCatLimitW() argument 26 SECUREC_CALC_WSTR_LEN(strDest, destMax, &destLen); in SecDoCatLimitW() 29 if (SECUREC_CAT_STRING_IS_OVERLAP(strDest, destLen, strSrc, srcLen)) { in SecDoCatLimitW() 30 strDest[0] = L'\0'; in SecDoCatLimitW() 31 if (strDest + destLen <= strSrc && destLen == destMax) { in SecDoCatLimitW() 38 if (srcLen + destLen >= destMax || strDest == strSrc) { in SecDoCatLimitW() 39 strDest[0] = L'\0'; in SecDoCatLimitW() 47 … SECUREC_MEMCPY_WARP_OPT(strDest + destLen, strSrc, srcLen * sizeof(wchar_t)); /* no terminator */ in SecDoCatLimitW() 48 *(strDest + destLen + srcLen) = L'\0'; in SecDoCatLimitW() 87 errno_t wcsncat_s(wchar_t *strDest, size_t destMax, const wchar_t *strSrc, size_t count) in wcsncat_s() argument [all …]
|
D | wcsncpy_s.c | 18 SECUREC_INLINE errno_t SecDoCpyLimitW(wchar_t *strDest, size_t destMax, const wchar_t *strSrc, size… in SecDoCpyLimitW() argument 27 strDest[0] = L'\0'; in SecDoCpyLimitW() 31 if (strDest == strSrc) { in SecDoCpyLimitW() 34 if (SECUREC_STRING_NO_OVERLAP(strDest, strSrc, srcStrLen)) { in SecDoCpyLimitW() 36 SECUREC_MEMCPY_WARP_OPT(strDest, strSrc, srcStrLen * sizeof(wchar_t)); in SecDoCpyLimitW() 37 *(strDest + srcStrLen) = L'\0'; in SecDoCpyLimitW() 40 strDest[0] = L'\0'; in SecDoCpyLimitW() 76 errno_t wcsncpy_s(wchar_t *strDest, size_t destMax, const wchar_t *strSrc, size_t count) in wcsncpy_s() argument 82 if (strDest == NULL || strSrc == NULL) { in wcsncpy_s() 84 if (strDest != NULL) { in wcsncpy_s() [all …]
|
D | strcat_s.c | 21 SECUREC_INLINE errno_t SecDoCat(char *strDest, size_t destMax, const char *strSrc) in SecDoCat() argument 26 SECUREC_CALC_STR_LEN(strDest, destMax, &destLen); in SecDoCat() 31 if (SECUREC_CAT_STRING_IS_OVERLAP(strDest, destLen, strSrc, srcLen)) { in SecDoCat() 32 strDest[0] = '\0'; in SecDoCat() 33 if (strDest + destLen <= strSrc && destLen == destMax) { in SecDoCat() 40 if (srcLen + destLen >= destMax || strDest == strSrc) { in SecDoCat() 41 strDest[0] = '\0'; in SecDoCat() 49 …SECUREC_MEMCPY_WARP_OPT(strDest + destLen, strSrc, srcLen + 1); /* Single character length includ… in SecDoCat() 82 errno_t strcat_s(char *strDest, size_t destMax, const char *strSrc) in strcat_s() argument 88 if (strDest == NULL || strSrc == NULL) { in strcat_s() [all …]
|
D | wcscat_s.c | 21 SECUREC_INLINE errno_t SecDoCatW(wchar_t *strDest, size_t destMax, const wchar_t *strSrc) in SecDoCatW() argument 28 SECUREC_CALC_WSTR_LEN(strDest, destMax, &destLen); in SecDoCatW() 32 if (SECUREC_CAT_STRING_IS_OVERLAP(strDest, destLen, strSrc, srcLen)) { in SecDoCatW() 33 strDest[0] = L'\0'; in SecDoCatW() 34 if (strDest + destLen <= strSrc && destLen == destMax) { in SecDoCatW() 41 if (srcLen + destLen >= destMax || strDest == strSrc) { in SecDoCatW() 42 strDest[0] = L'\0'; in SecDoCatW() 51 SECUREC_MEMCPY_WARP_OPT(strDest + destLen, strSrc, (srcLen + 1) * sizeof(wchar_t)); in SecDoCatW() 90 errno_t wcscat_s(wchar_t *strDest, size_t destMax, const wchar_t *strSrc) in wcscat_s() argument 97 if (strDest == NULL || strSrc == NULL) { in wcscat_s() [all …]
|
D | wcscpy_s.c | 18 SECUREC_INLINE errno_t SecDoCpyW(wchar_t *strDest, size_t destMax, const wchar_t *strSrc) in SecDoCpyW() argument 24 strDest[0] = L'\0'; in SecDoCpyW() 28 if (strDest == strSrc) { in SecDoCpyW() 32 if (SECUREC_STRING_NO_OVERLAP(strDest, strSrc, srcStrLen)) { in SecDoCpyW() 34 SECUREC_MEMCPY_WARP_OPT(strDest, strSrc, (srcStrLen + 1) * sizeof(wchar_t)); in SecDoCpyW() 37 strDest[0] = L'\0'; in SecDoCpyW() 71 errno_t wcscpy_s(wchar_t *strDest, size_t destMax, const wchar_t *strSrc) in wcscpy_s() argument 77 if (strDest == NULL || strSrc == NULL) { in wcscpy_s() 79 if (strDest != NULL) { in wcscpy_s() 80 strDest[0] = L'\0'; in wcscpy_s() [all …]
|
D | vsnprintf_s.c | 45 int vsnprintf_s(char *strDest, size_t destMax, size_t count, const char *format, va_list argList) in vsnprintf_s() argument 49 if (SECUREC_VSNPRINTF_PARAM_ERROR(format, strDest, destMax, count, SECUREC_STRING_MAX_LEN)) { in vsnprintf_s() 50 SECUREC_VSPRINTF_CLEAR_DEST(strDest, destMax, SECUREC_STRING_MAX_LEN); in vsnprintf_s() 56 retVal = SecVsnprintfImpl(strDest, count + 1, format, argList); in vsnprintf_s() 62 retVal = SecVsnprintfImpl(strDest, destMax, format, argList); in vsnprintf_s() 71 strDest[0] = '\0'; /* Empty the dest strDest */ in vsnprintf_s() 113 int vsnprintf_truncated_s(char *strDest, size_t destMax, const char *format, va_list argList) in vsnprintf_truncated_s() argument 117 if (SECUREC_VSPRINTF_PARAM_ERROR(format, strDest, destMax, SECUREC_STRING_MAX_LEN)) { in vsnprintf_truncated_s() 118 SECUREC_VSPRINTF_CLEAR_DEST(strDest, destMax, SECUREC_STRING_MAX_LEN); in vsnprintf_truncated_s() 123 retVal = SecVsnprintfImpl(strDest, destMax, format, argList); in vsnprintf_truncated_s() [all …]
|
D | secureprintoutput.h | 92 #define SECUREC_VSPRINTF_PARAM_ERROR(format, strDest, destMax, maxLimit) \ argument 93 ((format) == NULL || (strDest) == NULL || (destMax) == 0 || (destMax) > (maxLimit)) 95 #define SECUREC_VSPRINTF_CLEAR_DEST(strDest, destMax, maxLimit) do { \ argument 96 if ((strDest) != NULL && (destMax) > 0 && (destMax) <= (maxLimit)) { \ 97 *(strDest) = '\0'; \ 102 #define SECUREC_VSNPRINTF_PARAM_ERROR(format, strDest, destMax, count, maxLimit) \ argument 103 (((format) == NULL || (strDest) == NULL || (destMax) == 0 || (destMax) > (maxLimit)) || \ 107 #define SECUREC_VSNPRINTF_PARAM_ERROR(format, strDest, destMax, count, maxLimit) \ argument 108 (((format) == NULL || (strDest) == NULL || (destMax) == 0 || (destMax) > (maxLimit)) || \
|
D | vsprintf_s.c | 42 int vsprintf_s(char *strDest, size_t destMax, const char *format, va_list argList) in vsprintf_s() argument 46 if (SECUREC_VSPRINTF_PARAM_ERROR(format, strDest, destMax, SECUREC_STRING_MAX_LEN)) { in vsprintf_s() 47 SECUREC_VSPRINTF_CLEAR_DEST(strDest, destMax, SECUREC_STRING_MAX_LEN); in vsprintf_s() 52 retVal = SecVsnprintfImpl(strDest, destMax, format, argList); in vsprintf_s() 54 strDest[0] = '\0'; in vsprintf_s()
|
D | vswprintf_s.c | 41 int vswprintf_s(wchar_t *strDest, size_t destMax, const wchar_t *format, va_list argList) in vswprintf_s() argument 44 if (SECUREC_VSPRINTF_PARAM_ERROR(format, strDest, destMax, SECUREC_WCHAR_STRING_MAX_LEN)) { in vswprintf_s() 45 SECUREC_VSPRINTF_CLEAR_DEST(strDest, destMax, SECUREC_WCHAR_STRING_MAX_LEN); in vswprintf_s() 50 retVal = SecVswprintfImpl(strDest, destMax, format, argList); in vswprintf_s() 52 strDest[0] = L'\0'; in vswprintf_s()
|
/third_party/mindspore/third_party/securec/src/ |
D | strcpy_s.c | 38 if (SECUREC_ADDR_ALIGNED_8(strDest) && SECUREC_ADDR_ALIGNED_8(strSrc)) { \ 42 *(SecStrBuf1 *)(void *)strDest = *(const SecStrBuf1 *)(const void *)strSrc; \ 45 *(SecStrBuf2 *)(void *)strDest = *(const SecStrBuf2 *)(const void *)strSrc; \ 48 *(SecStrBuf3 *)(void *)strDest = *(const SecStrBuf3 *)(const void *)strSrc; \ 51 *(SecStrBuf4 *)(void *)strDest = *(const SecStrBuf4 *)(const void *)strSrc; \ 54 *(SecStrBuf5 *)(void *)strDest = *(const SecStrBuf5 *)(const void *)strSrc; \ 57 *(SecStrBuf6 *)(void *)strDest = *(const SecStrBuf6 *)(const void *)strSrc; \ 60 *(SecStrBuf7 *)(void *)strDest = *(const SecStrBuf7 *)(const void *)strSrc; \ 63 *(SecStrBuf8 *)(void *)strDest = *(const SecStrBuf8 *)(const void *)strSrc; \ 66 *(SecStrBuf9 *)(void *)strDest = *(const SecStrBuf9 *)(const void *)strSrc; \ [all …]
|
D | strncpy_s.c | 23 #define SECUREC_STRNCPY_PARAM_OK(strDest, destMax, strSrc, count) \ argument 24 …(((destMax) > 0 && (destMax) <= SECUREC_STRING_MAX_LEN && (strDest) != NULL && (strSrc) != NULL &&… 27 #define SECUREC_STRNCPY_PARAM_OK(strDest, destMax, strSrc, count) \ argument 28 …(((destMax) > 0 && (destMax) <= SECUREC_STRING_MAX_LEN && (strDest) != NULL && (strSrc) != NULL &&… 35 static errno_t CheckSrcCountRange(char *strDest, size_t destMax, const char *strSrc, size_t count) in CheckSrcCountRange() argument 48 strDest[0] = '\0'; in CheckSrcCountRange() 58 errno_t strncpy_error(char *strDest, size_t destMax, const char *strSrc, size_t count) in strncpy_error() argument 63 } else if (strDest == NULL || strSrc == NULL) { in strncpy_error() 65 if (strDest != NULL) { in strncpy_error() 66 strDest[0] = '\0'; in strncpy_error() [all …]
|
D | strncat_s.c | 25 static errno_t SecDoStrncat(char *strDest, size_t destMax, const char *strSrc, size_t count) in SecDoStrncat() argument 27 size_t destLen = SecStrMinLen(strDest, destMax); in SecDoStrncat() 33 if (SECUREC_CAT_STRING_IS_OVERLAP(strDest, destLen, strSrc, srcLen)) { in SecDoStrncat() 34 strDest[0] = '\0'; in SecDoStrncat() 35 if (strDest + destLen <= strSrc && destLen == destMax) { in SecDoStrncat() 42 if (srcLen + destLen >= destMax || strDest == strSrc) { in SecDoStrncat() 43 strDest[0] = '\0'; in SecDoStrncat() 51 SecDoMemcpy(strDest + destLen, strSrc, srcLen); /* no terminator */ in SecDoStrncat() 52 *(strDest + destLen + srcLen) = '\0'; in SecDoStrncat() 89 errno_t strncat_s(char *strDest, size_t destMax, const char *strSrc, size_t count) in strncat_s() argument [all …]
|
D | wcsncat_s.c | 24 static errno_t SecDoWcsncat(wchar_t *strDest, size_t destMax, const wchar_t *strSrc, size_t count) in SecDoWcsncat() argument 30 SECUREC_CALC_WSTR_LEN(strDest, destMax, &destLen); in SecDoWcsncat() 33 if (SECUREC_CAT_STRING_IS_OVERLAP(strDest, destLen, strSrc, srcLen)) { in SecDoWcsncat() 34 strDest[0] = L'\0'; in SecDoWcsncat() 35 if (strDest + destLen <= strSrc && destLen == destMax) { in SecDoWcsncat() 42 if (srcLen + destLen >= destMax || strDest == strSrc) { in SecDoWcsncat() 43 strDest[0] = L'\0'; in SecDoWcsncat() 51 SecDoMemcpy(strDest + destLen, strSrc, srcLen * sizeof(wchar_t)); /* no terminator */ in SecDoWcsncat() 52 *(strDest + destLen + srcLen) = L'\0'; in SecDoWcsncat() 90 errno_t wcsncat_s(wchar_t *strDest, size_t destMax, const wchar_t *strSrc, size_t count) in wcsncat_s() argument [all …]
|
D | wcsncpy_s.c | 21 static errno_t SecDoWcsncpy(wchar_t *strDest, size_t destMax, const wchar_t *strSrc, size_t count) in SecDoWcsncpy() argument 30 strDest[0] = '\0'; in SecDoWcsncpy() 34 if (strDest == strSrc) { in SecDoWcsncpy() 37 if (SECUREC_STRING_NO_OVERLAP(strDest, strSrc, srcStrLen)) { in SecDoWcsncpy() 39 SecDoMemcpy(strDest, strSrc, srcStrLen * sizeof(wchar_t)); in SecDoWcsncpy() 40 *(strDest + srcStrLen) = L'\0'; in SecDoWcsncpy() 43 strDest[0] = L'\0'; in SecDoWcsncpy() 79 errno_t wcsncpy_s(wchar_t *strDest, size_t destMax, const wchar_t *strSrc, size_t count) in wcsncpy_s() argument 85 if (strDest == NULL || strSrc == NULL) { in wcsncpy_s() 87 if (strDest != NULL) { in wcsncpy_s() [all …]
|
D | strcat_s.c | 25 static errno_t SecDoStrcat(char *strDest, size_t destMax, const char *strSrc) in SecDoStrcat() argument 27 size_t destLen = SecStrMinLen(strDest, destMax); in SecDoStrcat() 31 if (SECUREC_CAT_STRING_IS_OVERLAP(strDest, destLen, strSrc, srcLen)) { in SecDoStrcat() 32 strDest[0] = '\0'; in SecDoStrcat() 33 if (strDest + destLen <= strSrc && destLen == destMax) { in SecDoStrcat() 40 if (srcLen + destLen >= destMax || strDest == strSrc) { in SecDoStrcat() 41 strDest[0] = '\0'; in SecDoStrcat() 49 SecDoMemcpy(strDest + destLen, strSrc, srcLen + 1); /* single character length include \0 */ in SecDoStrcat() 82 errno_t strcat_s(char *strDest, size_t destMax, const char *strSrc) in strcat_s() argument 88 if (strDest == NULL || strSrc == NULL) { in strcat_s() [all …]
|
D | wcscat_s.c | 24 static errno_t SecDoWcscat(wchar_t *strDest, size_t destMax, const wchar_t *strSrc) in SecDoWcscat() argument 31 SECUREC_CALC_WSTR_LEN(strDest, destMax, &destLen); in SecDoWcscat() 35 if (SECUREC_CAT_STRING_IS_OVERLAP(strDest, destLen, strSrc, srcLen)) { in SecDoWcscat() 36 strDest[0] = L'\0'; in SecDoWcscat() 37 if (strDest + destLen <= strSrc && destLen == destMax) { in SecDoWcscat() 44 if (srcLen + destLen >= destMax || strDest == strSrc) { in SecDoWcscat() 45 strDest[0] = L'\0'; in SecDoWcscat() 53 …SecDoMemcpy(strDest + destLen, strSrc, (srcLen + 1) * sizeof(wchar_t)); /* single character length… in SecDoWcscat() 92 errno_t wcscat_s(wchar_t *strDest, size_t destMax, const wchar_t *strSrc) in wcscat_s() argument 99 if (strDest == NULL || strSrc == NULL) { in wcscat_s() [all …]
|
D | vsnprintf_s.c | 46 int vsnprintf_s(char *strDest, size_t destMax, size_t count, const char *format, va_list argList) in vsnprintf_s() argument 50 if (format == NULL || strDest == NULL || destMax == 0 || destMax > SECUREC_STRING_MAX_LEN || in vsnprintf_s() 52 if (strDest != NULL && destMax > 0 && destMax <= SECUREC_STRING_MAX_LEN) { in vsnprintf_s() 53 strDest[0] = '\0'; in vsnprintf_s() 60 retVal = SecVsnprintfImpl(strDest, count + 1, format, argList); in vsnprintf_s() 66 retVal = SecVsnprintfImpl(strDest, destMax, format, argList); in vsnprintf_s() 75 strDest[0] = '\0'; /* empty the dest strDest */ in vsnprintf_s() 119 int vsnprintf_truncated_s(char *strDest, size_t destMax, const char *format, va_list argList) in vsnprintf_truncated_s() argument 123 if (format == NULL || strDest == NULL || destMax == 0 || destMax > SECUREC_STRING_MAX_LEN) { in vsnprintf_truncated_s() 124 if (strDest != NULL && destMax > 0 && destMax <= SECUREC_STRING_MAX_LEN) { in vsnprintf_truncated_s() [all …]
|
D | wcscpy_s.c | 21 static errno_t SecDoWcscpy(wchar_t *strDest, size_t destMax, const wchar_t *strSrc) in SecDoWcscpy() argument 27 strDest[0] = '\0'; in SecDoWcscpy() 31 if (strDest == strSrc) { in SecDoWcscpy() 35 if (SECUREC_STRING_NO_OVERLAP(strDest, strSrc, srcStrLen)) { in SecDoWcscpy() 37 …SecDoMemcpy(strDest, strSrc, (srcStrLen + 1) * sizeof(wchar_t)); /* single character length inclu… in SecDoWcscpy() 40 strDest[0] = L'\0'; in SecDoWcscpy() 74 errno_t wcscpy_s(wchar_t *strDest, size_t destMax, const wchar_t *strSrc) in wcscpy_s() argument 80 if (strDest == NULL || strSrc == NULL) { in wcscpy_s() 82 if (strDest != NULL) { in wcscpy_s() 83 strDest[0] = L'\0'; in wcscpy_s() [all …]
|
D | vswprintf_s.c | 39 int vswprintf_s(wchar_t *strDest, size_t destMax, const wchar_t *format, va_list argList) in vswprintf_s() argument 43 …if (format == NULL || strDest == NULL || destMax == 0 || destMax > (SECUREC_WCHAR_STRING_MAX_LEN))… in vswprintf_s() 44 if (strDest != NULL && destMax > 0) { in vswprintf_s() 45 strDest[0] = '\0'; in vswprintf_s() 51 retVal = SecVswprintfImpl(strDest, destMax, format, argList); in vswprintf_s() 54 strDest[0] = '\0'; in vswprintf_s()
|
D | vsprintf_s.c | 43 int vsprintf_s(char *strDest, size_t destMax, const char *format, va_list argList) in vsprintf_s() argument 47 if (format == NULL || strDest == NULL || destMax == 0 || destMax > SECUREC_STRING_MAX_LEN) { in vsprintf_s() 48 if (strDest != NULL && destMax > 0 && destMax <= SECUREC_STRING_MAX_LEN) { in vsprintf_s() 49 strDest[0] = '\0'; in vsprintf_s() 55 retVal = SecVsnprintfImpl(strDest, destMax, format, argList); in vsprintf_s() 58 strDest[0] = '\0'; in vsprintf_s()
|
/third_party/mindspore/third_party/securec/include/ |
D | securec.h | 162 SECUREC_API errno_t strcpy_s(char *strDest, size_t destMax, const char *strSrc); 176 SECUREC_API errno_t strncpy_s(char *strDest, size_t destMax, const char *strSrc, size_t count); 189 SECUREC_API errno_t strcat_s(char *strDest, size_t destMax, const char *strSrc); 203 SECUREC_API errno_t strncat_s(char *strDest, size_t destMax, const char *strSrc, size_t count); 217 SECUREC_API int vsprintf_s(char *strDest, size_t destMax, const char *format, 231 …SECUREC_API int sprintf_s(char *strDest, size_t destMax, const char *format, ...) SECUREC_ATTRIBUT… 246 SECUREC_API int vsnprintf_s(char *strDest, size_t destMax, size_t count, const char *format, 261 SECUREC_API int snprintf_s(char *strDest, size_t destMax, size_t count, const char *format, 276 SECUREC_API int vsnprintf_truncated_s(char *strDest, size_t destMax, const char *format, 288 SECUREC_API int snprintf_truncated_s(char *strDest, size_t destMax, [all …]
|
/third_party/bounds_checking_function/include/ |
D | securec.h | 163 SECUREC_API errno_t strcpy_s(char *strDest, size_t destMax, const char *strSrc); 176 SECUREC_API errno_t strncpy_s(char *strDest, size_t destMax, const char *strSrc, size_t count); 188 SECUREC_API errno_t strcat_s(char *strDest, size_t destMax, const char *strSrc); 202 SECUREC_API errno_t strncat_s(char *strDest, size_t destMax, const char *strSrc, size_t count); 216 SECUREC_API int vsprintf_s(char *strDest, size_t destMax, const char *format, 230 …SECUREC_API int sprintf_s(char *strDest, size_t destMax, const char *format, ...) SECUREC_ATTRIBUT… 245 SECUREC_API int vsnprintf_s(char *strDest, size_t destMax, size_t count, const char *format, 260 SECUREC_API int snprintf_s(char *strDest, size_t destMax, size_t count, const char *format, 275 SECUREC_API int vsnprintf_truncated_s(char *strDest, size_t destMax, const char *format, 287 SECUREC_API int snprintf_truncated_s(char *strDest, size_t destMax, [all …]
|