Home
last modified time | relevance | path

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

/bionic/libc/bionic/
D__strcpy_chk.cpp38 size_t src_len = strlen(src) + 1; in __strcpy_chk() local
39 __check_buffer_access("strcpy", "write into", src_len, dst_len); in __strcpy_chk()
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()
255 size_t n, size_t dst_len, size_t src_len) { in __stpncpy_chk2() argument
272 if (__predict_false(s_copy_len > src_len)) { in __stpncpy_chk2()
273 __fortify_fatal("stpncpy: detected read past end of %zu-byte buffer", src_len); in __stpncpy_chk2()
369 size_t n, size_t dst_len, size_t src_len) { in __strncpy_chk2() argument
386 if (__predict_false(s_copy_len > src_len)) { in __strncpy_chk2()
387 __fortify_fatal("strncpy: detected read past end of %zu-byte buffer", src_len); in __strncpy_chk2()
/bionic/tests/
Dwchar_test.cpp508 size_t src_len = NUM_WCHARS(sizeof(src)) - 1; in TEST() local
509 EXPECT_EQ(dst + src_len, wcpncpy(dst, src, src_len + 1)); in TEST()
517 EXPECT_EQ(dst + src_len, wcpncpy(dst, src, src_len + 4)); in TEST()
519 EXPECT_EQ(dst[src_len], L'\0'); in TEST()
520 EXPECT_EQ(dst[src_len+1], L'\0'); in TEST()
521 EXPECT_EQ(dst[src_len+2], L'\0'); in TEST()
522 EXPECT_EQ(dst[src_len+3], L'\0'); in TEST()
523 EXPECT_EQ(dst[src_len+4], L'x'); in TEST()
538 size_t src_len = NUM_WCHARS(sizeof(src)) - 1; in TEST() local
539 EXPECT_EQ(dst, wcsncpy(dst, src, src_len + 1)); in TEST()
[all …]
/bionic/libc/kernel/uapi/linux/
Dfib_rules.h33 __u8 src_len; member