Lines Matching refs:buf2

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