Lines Matching refs:strncpy
515 #define strncpy(a,b,n) __strncpy_chk(a,b,n,(size_t)-1) macro
519 #define strncpy BUILTIN(strncpy) macro
520 char *strncpy(char *restrict s1, const char *restrict s2, size_t n);
526 …strncpy(NULL, x, 5); // expected-warning{{Null pointer passed as 1st argument to string copy funct… in strncpy_null_dst()
530 …strncpy(x, NULL, 5); // expected-warning{{Null pointer passed as 2nd argument to string copy funct… in strncpy_null_src()
534 …strncpy(x, (char*)&strcpy_fn, 5); // expected-warning{{Argument to string copy function is the add… in strncpy_fn()
540 clang_analyzer_eval(strncpy(x, y, 5) == x); // expected-warning{{TRUE}} in strncpy_effects()
550 strncpy(p, "AAA", sizeof("AAA")); in cstringchecker_bounds_nocrash()
558 strncpy(x, y, 5); in strncpy_overflow()
568 strncpy(x, y, 5); in strncpy_no_overflow()
581 strncpy(x, y, n); in strncpy_no_overflow2()
589 strncpy(x, y, 3); // no-warning in strncpy_truncate()
595 strncpy(x, y, 3); // no-warning in strncpy_no_truncate()
600 strncpy(x, y, 4); // no-warning in strncpy_exactly_matching_buffer()
609 strncpy(dst, src, 0); // no-warning in strncpy_zero()
615 strncpy(dst, src, 4); // no-warning in strncpy_empty()
1540 strncpy(x, y, 4); // no-warning in strncpy_exactly_matching_buffer2()