Home
last modified time | relevance | path

Searched refs:SECUREC_STRING_MAX_LEN (Results 1 - 13 of 13) sorted by relevance

/third_party/bounds_checking_function/src/
H A Dstrncpy_s.c24 (((destMax) > 0 && (destMax) <= SECUREC_STRING_MAX_LEN && (strDest) != NULL && (strSrc) != NULL && \
25 ((count) <= SECUREC_STRING_MAX_LEN || (count) == ((size_t)(-1))) && (count) > 0))
28 (((destMax) > 0 && (destMax) <= SECUREC_STRING_MAX_LEN && (strDest) != NULL && (strSrc) != NULL && \
29 (count) <= SECUREC_STRING_MAX_LEN && (count) > 0))
60 if (destMax == 0 || destMax > SECUREC_STRING_MAX_LEN) { in strncpy_error()
72 if (count > SECUREC_STRING_MAX_LEN) { in strncpy_error()
100 * EINVAL strDest is NULL and destMax != 0 and destMax <= SECUREC_STRING_MAX_LEN
101 * EINVAL_AND_RESET strDest != NULL and strSrc is NULL and destMax != 0 and destMax <= SECUREC_STRING_MAX_LEN
102 * ERANGE destMax is 0 and destMax > SECUREC_STRING_MAX_LEN
H A Dvsnprintf_s.c48 if (SECUREC_VSNPRINTF_PARAM_ERROR(format, strDest, destMax, count, SECUREC_STRING_MAX_LEN)) { in vsnprintf_s()
49 SECUREC_VSPRINTF_CLEAR_DEST(strDest, destMax, SECUREC_STRING_MAX_LEN); in vsnprintf_s()
116 if (SECUREC_VSPRINTF_PARAM_ERROR(format, strDest, destMax, SECUREC_STRING_MAX_LEN)) { in vsnprintf_truncated_s()
117 SECUREC_VSPRINTF_CLEAR_DEST(strDest, destMax, SECUREC_STRING_MAX_LEN); in vsnprintf_truncated_s()
H A Dvsprintf_s.c45 if (SECUREC_VSPRINTF_PARAM_ERROR(format, strDest, destMax, SECUREC_STRING_MAX_LEN)) { in vsprintf_s()
46 SECUREC_VSPRINTF_CLEAR_DEST(strDest, destMax, SECUREC_STRING_MAX_LEN); in vsprintf_s()
H A Dgets_s.c54 size_t bufferSize = ((destMax == (size_t)(-1)) ? SECUREC_STRING_MAX_LEN : destMax); in gets_s()
59 if (buffer == NULL || bufferSize == 0 || bufferSize > SECUREC_STRING_MAX_LEN) { in gets_s()
H A Dstrncat_s.c78 * EINVAL strDest is NULL and destMax != 0 and destMax <= SECUREC_STRING_MAX_LEN
80 * (strDest != NULL and strSrc is NULL and destMax != 0 and destMax <= SECUREC_STRING_MAX_LEN)
81 * ERANGE destMax is 0 and destMax > SECUREC_STRING_MAX_LEN
89 if (destMax == 0 || destMax > SECUREC_STRING_MAX_LEN) { in strncat_s()
102 if (count > SECUREC_STRING_MAX_LEN) { in strncat_s()
H A Dsecureprintoutput.h132 ((count) > (SECUREC_STRING_MAX_LEN - 1) && (count) != (size_t)(-1)))
137 ((count) > (SECUREC_STRING_MAX_LEN - 1)))
H A Dstrcpy_s.c27 (destMax) <= SECUREC_STRING_MAX_LEN && (strDest) != NULL && (strSrc) != NULL && (strDest) != (strSrc))
286 if (destMax == 0 || destMax > SECUREC_STRING_MAX_LEN) { in strcpy_error()
319 * EINVAL strDest is NULL and destMax != 0 and destMax <= SECUREC_STRING_MAX_LEN
320 * EINVAL_AND_RESET strDest != NULL and strSrc is NULL and destMax != 0 and destMax <= SECUREC_STRING_MAX_LEN
321 * ERANGE destMax is 0 and destMax > SECUREC_STRING_MAX_LEN
H A Dvsscanf_s.c61 if (count == 0 || count > SECUREC_STRING_MAX_LEN) { in vsscanf_s()
H A Dstrcat_s.c72 * EINVAL strDest is NULL and destMax != 0 and destMax <= SECUREC_STRING_MAX_LEN
74 * (strDest != NULL and strSrc is NULL and destMax != 0 and destMax <= SECUREC_STRING_MAX_LEN)
75 * ERANGE destMax is 0 and destMax > SECUREC_STRING_MAX_LEN
83 if (destMax == 0 || destMax > SECUREC_STRING_MAX_LEN) { in strcat_s()
/third_party/bounds_checking_function/include/
H A Dsecurectype.h15 * Notes: User can change the value of SECUREC_STRING_MAX_LEN and SECUREC_MEM_MAX_LEN
416 #ifndef SECUREC_STRING_MAX_LEN
417 #define SECUREC_STRING_MAX_LEN 0x7fffffffUL macro
419 #define SECUREC_WCHAR_STRING_MAX_LEN (SECUREC_STRING_MAX_LEN / sizeof(wchar_t))
427 #if SECUREC_STRING_MAX_LEN > 0x7fffffffUL
489 (((unsigned long long)(destMax) & (unsigned long long)(-2)) < SECUREC_STRING_MAX_LEN) && \
496 (((unsigned long long)(destMax) & (unsigned long long)(-2)) < SECUREC_STRING_MAX_LEN) && \
505 (((unsigned long long)(destMax) & (unsigned long long)(-2)) < SECUREC_STRING_MAX_LEN)) { \
537 (((unsigned long long)(destMax) & (unsigned long long)(-2)) < SECUREC_STRING_MAX_LEN) && \
538 (((unsigned long long)(count) & (unsigned long long)(-2)) < SECUREC_STRING_MAX_LEN)) { \
[all...]
/third_party/musl/src/hilog/linux/
H A Dvsnprintf_s_p.c26 #ifndef SECUREC_STRING_MAX_LEN
27 #define SECUREC_STRING_MAX_LEN 0x7fffffffUL macro
30 #if SECUREC_STRING_MAX_LEN > 0x7fffffffUL
225 if (format == NULL || strDest == NULL || destMax == 0 || destMax > SECUREC_STRING_MAX_LEN || in vsnprintfp_s()
226 (count > (SECUREC_STRING_MAX_LEN - 1) && count != (size_t)-1)) { in vsnprintfp_s()
/third_party/musl/porting/linux/user/src/hilog/
H A Dvsnprintf_s_p.c26 #ifndef SECUREC_STRING_MAX_LEN
27 #define SECUREC_STRING_MAX_LEN 0x7fffffffUL macro
30 #if SECUREC_STRING_MAX_LEN > 0x7fffffffUL
225 if (format == NULL || strDest == NULL || destMax == 0 || destMax > SECUREC_STRING_MAX_LEN || in vsnprintfp_s()
226 (count > (SECUREC_STRING_MAX_LEN - 1) && count != (size_t)-1)) { in vsnprintfp_s()
/third_party/musl/libc-test/src/functionalext/unittest/
H A Dunit_test_hilog_vsnprint_f_p.c22 #define SECUREC_STRING_MAX_LEN 0x7fffffffUL macro
107 * @tc.desc : test vsnprintf param destMax is greater than SECUREC_STRING_MAX_LEN
114 int ret = vsprintf_test(buf, SECUREC_STRING_MAX_LEN + 1, MAX_LOG_LEN - 1, true, fmt); in vsnprintfp_s_0060()
121 * @tc.desc : test vsnprintf param count is greater than SECUREC_STRING_MAX_LEN
128 int ret = vsprintf_test(buf, MAX_LOG_LEN - 1, SECUREC_STRING_MAX_LEN + 1, true, fmt); in vsnprintfp_s_0070()

Completed in 6 milliseconds