Lines Matching refs:memcpy

11 // path, such as memcpy and __memcpy_chk, or memcmp and bcmp. If VARIANT is
19 // declared carefully! See memcpy() for an example.
32 // memcpy()
41 #define memcpy(a,b,c) __memcpy_chk(a,b,c,(size_t)-1)
45 #define memcpy BUILTIN(memcpy)
46 void *memcpy(void *restrict s1, const void *restrict s2, size_t n);
55 memcpy(dst, src, 4); // no-warning
57 clang_analyzer_eval(memcpy(dst, src, 4) == dst); // expected-warning{{TRUE}}
68 memcpy(dst, src, 5); // expected-warning{{Memory copy function accesses out-of-bound array element}}
75 memcpy(dst, src, 4); // expected-warning{{Memory copy function overflows destination buffer}}
82 memcpy(dst+1, src+2, 2); // no-warning
89 memcpy(dst+2, src+2, 3); // expected-warning{{Memory copy function accesses out-of-bound array element}}
96 memcpy(dst+2, src+2, 2); // expected-warning{{Memory copy function overflows destination buffer}}
101 memcpy(a, a, 8); // expected-warning{{overlapping}}
106 memcpy(a+2, a+1, 8); // expected-warning{{overlapping}}
111 memcpy(a+1, a+2, 8); // expected-warning{{overlapping}}
116 memcpy(a+2, a+1, 4); // no-warning
117 memcpy(a+1, a+2, 4); // no-warning
122 memcpy(0, a, 4); // expected-warning{{Null pointer argument in call to memory copy function}}
127 memcpy(a, 0, 4); // expected-warning{{Null pointer argument in call to memory copy function}}
132 memcpy(0, a, 0); // no-warning
137 memcpy(a, 0, 0); // no-warning
142 clang_analyzer_eval(memcpy(a, b, n) == a); // expected-warning{{TRUE}}
147 void *result = memcpy(a, 0, n); // expected-warning{{Null pointer argument in call to memory copy function}}
433 memcpy(bytes, input, length);