Lines Matching refs:src
50 char src[] = {1, 2, 3, 4};
53 memcpy(dst, src, 4); // no-warning
55 if (memcpy(dst, src, 4) != dst) {
64 char src[] = {1, 2, 3, 4};
67 memcpy(dst, src, 5); // expected-warning{{Memory copy function accesses out-of-bound array element}}
71 char src[] = {1, 2, 3, 4};
74 memcpy(dst, src, 4); // expected-warning{{Memory copy function overflows destination buffer}}
78 char src[] = {1, 2, 3, 4};
81 memcpy(dst+1, src+2, 2); // no-warning
85 char src[] = {1, 2, 3, 4};
88 memcpy(dst+2, src+2, 3); // expected-warning{{Memory copy function accesses out-of-bound array element}}
92 char src[] = {1, 2, 3, 4};
95 memcpy(dst+2, src+2, 2); // expected-warning{{Memory copy function overflows destination buffer}}
172 char src[] = {1, 2, 3, 4};
175 mempcpy(dst, src, 4); // no-warning
177 if (mempcpy(dst, src, 4) != &dst[4]) {
186 char src[] = {1, 2, 3, 4};
189 mempcpy(dst, src, 5); // expected-warning{{Memory copy function accesses out-of-bound array element}}
193 char src[] = {1, 2, 3, 4};
196 mempcpy(dst, src, 4); // expected-warning{{Memory copy function overflows destination buffer}}
200 char src[] = {1, 2, 3, 4};
203 mempcpy(dst+1, src+2, 2); // no-warning
207 char src[] = {1, 2, 3, 4};
210 mempcpy(dst+2, src+2, 3); // expected-warning{{Memory copy function accesses out-of-bound array element}}
214 char src[] = {1, 2, 3, 4};
217 mempcpy(dst+2, src+2, 2); // expected-warning{{Memory copy function overflows destination buffer}}
267 void mempcpy_unknownable_size (char *src, float n) {
270 mempcpy(a, src, (size_t)n);
293 char src[] = {1, 2, 3, 4};
296 memmove(dst, src, 4); // no-warning
298 if (memmove(dst, src, 4) != dst) {
307 char src[] = {1, 2, 3, 4};
310 memmove(dst, src, 5); // expected-warning{{out-of-bound}}
314 char src[] = {1, 2, 3, 4};
317 memmove(dst, src, 4); // expected-warning{{overflow}}
409 char src[] = {1, 2, 3, 4};
412 bcopy(src, dst, 4); // no-warning
419 char src[] = {1, 2, 3, 4};
422 bcopy(src, dst, 5); // expected-warning{{out-of-bound}}
426 char src[] = {1, 2, 3, 4};
429 bcopy(src, dst, 4); // expected-warning{{overflow}}