Lines Matching refs:buf2

20   char buf2[20];  in test()  local
24 memcpy (&buf2[19], "ab", 1); in test()
25 memcpy (&buf2[19], "ab", 2); /* { dg-warning "will always overflow" "memcpy" } */ in test()
26 vx = mempcpy (&buf2[19], "ab", 1); in test()
27 vx = mempcpy (&buf2[19], "ab", 2); /* { dg-warning "will always overflow" "mempcpy" } */ in test()
28 memmove (&buf2[18], &buf1[10], 2); in test()
29 memmove (&buf2[18], &buf1[10], 3); /* { dg-warning "will always overflow" "memmove" } */ in test()
30 memset (&buf2[16], 'a', 4); in test()
31 memset (&buf2[15], 'b', 6); /* { dg-warning "will always overflow" "memset" } */ in test()
32 strcpy (&buf2[18], "a"); in test()
33 strcpy (&buf2[18], "ab"); /* { dg-warning "will always overflow" "strcpy" } */ in test()
34 vx = stpcpy (&buf2[18], "a"); in test()
35 vx = stpcpy (&buf2[18], "ab"); /* { dg-warning "will always overflow" "stpcpy" } */ in test()
36 strncpy (&buf2[18], "a", 2); in test()
37 strncpy (&buf2[18], "a", 3); /* { dg-warning "will always overflow" "strncpy" } */ in test()
38 strncpy (&buf2[18], "abc", 2); in test()
39 strncpy (&buf2[18], "abc", 3); /* { dg-warning "will always overflow" "strncpy" } */ in test()
40 memset (buf2, '\0', sizeof (buf2)); in test()
41 strcat (&buf2[18], "a"); in test()
42 memset (buf2, '\0', sizeof (buf2)); in test()
43 strcat (&buf2[18], "ab"); /* { dg-warning "will always overflow" "strcat" } */ in test()
44 sprintf (&buf2[18], "%s", buf1); in test()
45 sprintf (&buf2[18], "%s", "a"); in test()
46 sprintf (&buf2[18], "%s", "ab"); /* { dg-warning "will always overflow" "sprintf" } */ in test()
47 sprintf (&buf2[18], "a"); in test()
48 sprintf (&buf2[18], "ab"); /* { dg-warning "will always overflow" "sprintf" } */ in test()
49 snprintf (&buf2[18], 2, "%d", x); in test()
54 snprintf (&buf2[18], 3, "%d", x); /* { dg-warning "will always overflow" "snprintf" } */ in test()
56 vsprintf (&buf2[18], "a", ap); in test()
59 vsprintf (&buf2[18], "ab", ap); /* { dg-warning "will always overflow" "vsprintf" } */ in test()
62 vsnprintf (&buf2[18], 2, "%s", ap); in test()
66 vsnprintf (&buf2[18], 3, "%s", ap); /* { dg-warning "will always overflow" "vsnprintf" } */ in test()