You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
memcpy(); // expected-warning{{function 'memcpy' is unsafe}}
67
-
std::memcpy(); // expected-warning{{function 'memcpy' is unsafe}}
68
76
__builtin_memcpy(p, q, 64); // expected-warning{{function '__builtin_memcpy' is unsafe}}
69
77
__builtin___memcpy_chk(p, q, 8, 64); // expected-warning{{function '__builtin___memcpy_chk' is unsafe}}
70
78
__asan_memcpy(); // expected-warning{{function '__asan_memcpy' is unsafe}}
71
79
strcpy(); // expected-warning{{function 'strcpy' is unsafe}}
72
-
std::strcpy(); // expected-warning{{function 'strcpy' is unsafe}}
73
80
strcpy_s(); // expected-warning{{function 'strcpy_s' is unsafe}}
74
81
wcscpy_s(); // expected-warning{{function 'wcscpy_s' is unsafe}}
82
+
#ifdef TEST_STD_NS
83
+
std::strcpy(); // expected-warning{{function 'strcpy' is unsafe}}
84
+
std::memcpy(); // expected-warning{{function 'memcpy' is unsafe}}
85
+
#endif
75
86
76
87
/* Test printfs */
77
88
fprintf((FILE*)p, "%s%d", p, *p); // expected-warning{{function 'fprintf' is unsafe}} expected-note{{string argument is not guaranteed to be null-terminated}}
0 commit comments