Searched refs:src_len (Results 1 – 3 of 3) sorted by relevance
/bionic/libc/bionic/ |
D | fortify.cpp | 235 size_t src_len = strlen(src) + 1; in __stpcpy_chk() local 236 __check_buffer_access("stpcpy", "write into", src_len, dst_len); in __stpcpy_chk() 250 char* __stpncpy_chk2(char* dst, const char* src, size_t n, size_t dst_len, size_t src_len) { in __stpncpy_chk2() argument 258 if (__predict_false(s_copy_len >= src_len)) { in __stpncpy_chk2() 259 __fortify_fatal("stpncpy: detected read past end of %zu-byte buffer", src_len); in __stpncpy_chk2() 361 char* __strncpy_chk2(char* dst, const char* src, size_t n, size_t dst_len, size_t src_len) { in __strncpy_chk2() argument 369 if (__predict_false(s_copy_len >= src_len)) { in __strncpy_chk2() 370 __fortify_fatal("strncpy: detected read past end of %zu-byte buffer", src_len); in __strncpy_chk2() 487 size_t src_len = strlen(src) + 1; in __STRCPY_CHK() local 488 __check_buffer_access("strcpy", "write into", src_len, dst_len); in __STRCPY_CHK()
|
/bionic/tests/ |
D | wchar_test.cpp | 620 size_t src_len = NUM_WCHARS(sizeof(src)) - 1; in TEST() local 621 EXPECT_EQ(dst + src_len, wcpncpy(dst, src, src_len + 1)); in TEST() 629 EXPECT_EQ(dst + src_len, wcpncpy(dst, src, src_len + 4)); in TEST() 631 EXPECT_EQ(dst[src_len], L'\0'); in TEST() 632 EXPECT_EQ(dst[src_len+1], L'\0'); in TEST() 633 EXPECT_EQ(dst[src_len+2], L'\0'); in TEST() 634 EXPECT_EQ(dst[src_len+3], L'\0'); in TEST() 635 EXPECT_EQ(dst[src_len+4], L'x'); in TEST() 650 size_t src_len = NUM_WCHARS(sizeof(src)) - 1; in TEST() local 651 EXPECT_EQ(dst, wcsncpy(dst, src, src_len + 1)); in TEST() [all …]
|
/bionic/libc/kernel/uapi/linux/ |
D | fib_rules.h | 33 __u8 src_len; member
|