Lines Matching refs:memcpy
68 #define memcpy(a,b,c) __memcpy_chk(a,b,c,(size_t)-1) macro
72 #define memcpy BUILTIN(memcpy) macro
73 void *memcpy(void *restrict s1, const void *restrict s2, size_t n);
82 memcpy(dst, src, 4); // no-warning in memcpy0()
84 clang_analyzer_eval(memcpy(dst, src, 4) == dst); // expected-warning{{TRUE}} in memcpy0()
95 …memcpy(dst, src, 5); // expected-warning{{Memory copy function accesses out-of-bound array element… in memcpy1()
102 memcpy(dst, src, 4); // expected-warning {{Memory copy function overflows the destination buffer}} in memcpy2()
112 memcpy(dst+1, src+2, 2); // no-warning in memcpy3()
119 …memcpy(dst+2, src+2, 3); // expected-warning{{Memory copy function accesses out-of-bound array ele… in memcpy4()
126 …memcpy(dst + 2, src + 2, 2); // expected-warning{{Memory copy function overflows the destination b… in memcpy5()
134 memcpy(a, a, 8); // expected-warning{{overlapping}} in memcpy6()
139 memcpy(a+2, a+1, 8); // expected-warning{{overlapping}} in memcpy7()
144 memcpy(a+1, a+2, 8); // expected-warning{{overlapping}} in memcpy8()
149 memcpy(a+2, a+1, 4); // no-warning in memcpy9()
150 memcpy(a+1, a+2, 4); // no-warning in memcpy9()
155 …memcpy(0, a, 4); // expected-warning{{Null pointer passed as 1st argument to memory copy function}} in memcpy10()
160 …memcpy(a, 0, 4); // expected-warning{{Null pointer passed as 2nd argument to memory copy function}} in memcpy11()
165 memcpy(0, a, 0); // no-warning in memcpy12()
170 memcpy(a, 0, 0); // no-warning in memcpy13()
175 clang_analyzer_eval(memcpy(a, b, n) == a); // expected-warning{{TRUE}} in memcpy_unknown_size()
180 …void *result = memcpy(a, 0, n); // expected-warning{{Null pointer passed as 2nd argument to memory… in memcpy_unknown_size_warn()
519 memcpy(bytes, input, length); in radar_11125445_memcopythenlogfirstbyte()
531 memcpy(((void *) &(s.f)), from, iAdd); in nocrash_on_locint_offset()