Lines Matching refs:strncpy
451 #define strncpy(a,b,n) __strncpy_chk(a,b,n,(size_t)-1) macro
455 #define strncpy BUILTIN(strncpy) macro
456 char *strncpy(char *restrict s1, const char *restrict s2, size_t n);
462 strncpy(NULL, x, 5); // expected-warning{{Null pointer argument in call to string copy function}} in strncpy_null_dst()
466 strncpy(x, NULL, 5); // expected-warning{{Null pointer argument in call to string copy function}} in strncpy_null_src()
470 …strncpy(x, (char*)&strcpy_fn, 5); // expected-warning{{Argument to string copy function is the add… in strncpy_fn()
476 clang_analyzer_eval(strncpy(x, y, 5) == x); // expected-warning{{TRUE}} in strncpy_effects()
484 …strncpy(x, y, 5); // expected-warning{{Size argument is greater than the length of the destination… in strncpy_overflow()
490 …strncpy(x, y, 5); // expected-warning{{Size argument is greater than the length of the destination… in strncpy_no_overflow()
499 …strncpy(x, y, n); // expected-warning{{Size argument is greater than the length of the destination… in strncpy_no_overflow2()
505 strncpy(x, y, 3); // no-warning in strncpy_truncate()
511 strncpy(x, y, 3); // no-warning in strncpy_no_truncate()
516 strncpy(x, y, 4); // no-warning in strncpy_exactly_matching_buffer()
525 strncpy(dst, src, 0); // no-warning in strncpy_zero()
531 strncpy(dst, src, 4); // no-warning in strncpy_empty()
1166 strncpy(x, y, 4); // no-warning in strncpy_exactly_matching_buffer2()