Lines Matching refs:strncpy
529 #define strncpy(a,b,n) __strncpy_chk(a,b,n,(size_t)-1) macro
533 #define strncpy BUILTIN(strncpy) macro
534 char *strncpy(char *restrict s1, const char *restrict s2, size_t n);
540 …strncpy(NULL, x, 5); // expected-warning{{Null pointer passed as 1st argument to string copy funct… in strncpy_null_dst()
544 …strncpy(x, NULL, 5); // expected-warning{{Null pointer passed as 2nd argument to string copy funct… in strncpy_null_src()
548 …strncpy(x, (char*)&strcpy_fn, 5); // expected-warning{{Argument to string copy function is the add… in strncpy_fn()
554 clang_analyzer_eval(strncpy(x, y, 5) == x); // expected-warning{{TRUE}} in strncpy_effects()
564 strncpy(p, "AAA", sizeof("AAA")); in cstringchecker_bounds_nocrash()
572 strncpy(x, y, 5); in strncpy_overflow()
582 strncpy(x, y, 5); in strncpy_no_overflow()
595 strncpy(x, y, n); in strncpy_no_overflow2()
603 strncpy(x, y, 3); // no-warning in strncpy_truncate()
609 strncpy(x, y, 3); // no-warning in strncpy_no_truncate()
614 strncpy(x, y, 4); // no-warning in strncpy_exactly_matching_buffer()
623 strncpy(dst, src, 0); // no-warning in strncpy_zero()
629 strncpy(dst, src, 4); // no-warning in strncpy_empty()
1554 strncpy(x, y, 4); // no-warning in strncpy_exactly_matching_buffer2()