Home | History | Annotate | Download | only in Analysis

Lines Matching defs:strcpy

248 // strcpy()
256 #define strcpy(a,b) __strcpy_chk(a,b,(size_t)-1)
260 #define strcpy BUILTIN(strcpy)
261 char *strcpy(char *restrict s1, const char *restrict s2);
267 strcpy(NULL, x); // expected-warning{{Null pointer argument in call to string copy function}}
271 strcpy(x, NULL); // expected-warning{{Null pointer argument in call to string copy function}}
275 strcpy(x, (char*)&strcpy_fn); // expected-warning{{Argument to string copy function is the address of the function 'strcpy_fn', which is not a null-terminated string}}
279 strcpy(x, (const char*)&strcpy_fn); // expected-warning{{Argument to string copy function is the address of the function 'strcpy_fn', which is not a null-terminated string}}
285 clang_analyzer_eval(strcpy(x, y) == x); // expected-warning{{TRUE}}
293 strcpy(x, y); // expected-warning{{String copy function overflows destination buffer}}
299 strcpy(x, y); // no-warning