Home
last modified time | relevance | path

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

/bionic/libc/bionic/
Dfortify.cpp238 size_t src_len = strlen(src) + 1; in __stpcpy_chk() local
239 __check_buffer_access("stpcpy", "write into", src_len, dst_len); in __stpcpy_chk()
253 char* __stpncpy_chk2(char* dst, const char* src, size_t n, size_t dst_len, size_t src_len) { in __stpncpy_chk2() argument
270 if (__predict_false(s_copy_len > src_len)) { in __stpncpy_chk2()
271 __fortify_fatal("stpncpy: detected read past end of %zu-byte buffer", src_len); in __stpncpy_chk2()
364 char* __strncpy_chk2(char* dst, const char* src, size_t n, size_t dst_len, size_t src_len) { in __strncpy_chk2() argument
381 if (__predict_false(s_copy_len > src_len)) { in __strncpy_chk2()
382 __fortify_fatal("strncpy: detected read past end of %zu-byte buffer", src_len); in __strncpy_chk2()
490 size_t src_len = strlen(src) + 1; in __STRCPY_CHK() local
491 __check_buffer_access("strcpy", "write into", src_len, dst_len); in __STRCPY_CHK()
/bionic/tests/
Dwchar_test.cpp612 size_t src_len = NUM_WCHARS(sizeof(src)) - 1; in TEST() local
613 EXPECT_EQ(dst + src_len, wcpncpy(dst, src, src_len + 1)); in TEST()
621 EXPECT_EQ(dst + src_len, wcpncpy(dst, src, src_len + 4)); in TEST()
623 EXPECT_EQ(dst[src_len], L'\0'); in TEST()
624 EXPECT_EQ(dst[src_len+1], L'\0'); in TEST()
625 EXPECT_EQ(dst[src_len+2], L'\0'); in TEST()
626 EXPECT_EQ(dst[src_len+3], L'\0'); in TEST()
627 EXPECT_EQ(dst[src_len+4], L'x'); in TEST()
642 size_t src_len = NUM_WCHARS(sizeof(src)) - 1; in TEST() local
643 EXPECT_EQ(dst, wcsncpy(dst, src, src_len + 1)); in TEST()
[all …]
/bionic/libc/kernel/uapi/linux/
Dfib_rules.h33 __u8 src_len; member