Lines Matching refs:dst

8 #define memset(dst, val, sz) \  argument
9 (FUNC (memset, dst, val, sz, bos (dst)), sink ((dst)))
11 #define memcpy(dst, src, sz) \ argument
12 (FUNC (memcpy, dst, src, sz, bos (dst)), sink ((dst)))
14 #define memmove(dst, src, sz) \ argument
15 (FUNC (memmove, dst, src, sz, bos (dst)), sink ((dst)))
17 #define mempcpy(dst, src, sz) \ argument
18 (FUNC (mempcpy, dst, src, sz, bos (dst)), sink ((dst)))
20 #define strncpy(dst, src, sz) \ argument
21 (FUNC (strncpy, dst, src, sz, bos (dst)), sink (dst))
23 #define strncat(dst, src, sz) \ argument
24 (FUNC (strncat, dst, src, sz, bos (dst)), sink (dst))
26 #define stpncpy(dst, src, sz) \ argument
27 (FUNC (stpncpy, dst, src, sz, bos (dst)), sink (dst))
34 void test_string_literal (char *dst) in test_string_literal() argument
41 memcpy (dst, S10, sizeof S10); in test_string_literal()
42 mempcpy (dst, S10, sizeof S10); in test_string_literal()
43 memmove (dst, S10, sizeof S10); in test_string_literal()
45 memset (dst, 0, sizeof S10); in test_string_literal()
47 stpncpy (dst, S10, sizeof S10); /* { dg-warning "\\\[-Wsizeof-pointer-memaccess]" } */ in test_string_literal()
49 strncpy (dst, S10, sizeof S10); /* { dg-warning "\\\[-Wsizeof-pointer-memaccess]" } */ in test_string_literal()
51 strncat (dst, S10, sizeof S10); /* { dg-warning "\\\[-Wsizeof-pointer-memaccess]" } */ in test_string_literal()
58 …stpncpy (dst, S10, sizeof S10 - 1); /* { dg-warning "\\\[-Wsizeof-pointer-memaccess]" "" { xfail… in test_string_literal()
60 …strncpy (dst, S10, sizeof S10 - 1); /* { dg-warning "\\\[-Wsizeof-pointer-memaccess]" "" { xfail… in test_string_literal()
62 …strncat (dst, S10, sizeof S10 - 1); /* { dg-warning "\\\[-Wsizeof-pointer-memaccess]" "" { xfail… in test_string_literal()
66 void test_char_array (char *dst) in test_char_array() argument
68 memcpy (dst, a10, sizeof a10); in test_char_array()
69 mempcpy (dst, a10, sizeof a10); in test_char_array()
70 memmove (dst, a10, sizeof a10); in test_char_array()
72 memset (dst, 0, sizeof a10); in test_char_array()
74 stpncpy (dst, a10, sizeof a10); /* { dg-warning "\\\[-Wsizeof-pointer-memaccess]" } */ in test_char_array()
76 strncpy (dst, a10, sizeof a10); /* { dg-warning "\\\[-Wsizeof-pointer-memaccess]" } */ in test_char_array()
78 strncat (dst, a10, sizeof a10); /* { dg-warning "\\\[-Wsizeof-pointer-memaccess]" } */ in test_char_array()
80 …stpncpy (dst, a10, sizeof a10 - 1); /* { dg-warning "\\\[-Wsizeof-pointer-memaccess]" "" { xfail… in test_char_array()
82 …strncpy (dst, a10, sizeof a10 - 1); /* { dg-warning "\\\[-Wsizeof-pointer-memaccess]" "" { xfail… in test_char_array()
84 …strncat (dst, a10, sizeof a10 - 1); /* { dg-warning "\\\[-Wsizeof-pointer-memaccess]" "" { xfail… in test_char_array()
91 void test_char_array_chk (char *dst) in test_char_array_chk() argument
93 memcpy (dst, S10, sizeof S10); in test_char_array_chk()
94 mempcpy (dst, S10, sizeof S10); in test_char_array_chk()
95 memmove (dst, S10, sizeof S10); in test_char_array_chk()
97 memset (dst, 0, sizeof S10); in test_char_array_chk()
99 stpncpy (dst, S10, sizeof S10); /* { dg-warning "\\\[-Wsizeof-pointer-memaccess]" } */ in test_char_array_chk()
101 strncpy (dst, S10, sizeof S10); /* { dg-warning "\\\[-Wsizeof-pointer-memaccess]" } */ in test_char_array_chk()
103 strncat (dst, S10, sizeof S10); /* { dg-warning "\\\[-Wsizeof-pointer-memaccess]" } */ in test_char_array_chk()
105 …stpncpy (dst, S10, sizeof S10 - 1); /* { dg-warning "\\\[-Wsizeof-pointer-memaccess]" "" { xfail… in test_char_array_chk()
107 …strncpy (dst, S10, sizeof S10 - 1); /* { dg-warning "\\\[-Wsizeof-pointer-memaccess]" "" { xfail… in test_char_array_chk()
109 …strncat (dst, S10, sizeof S10 - 1); /* { dg-warning "\\\[-Wsizeof-pointer-memaccess]" "" { xfail… in test_char_array_chk()
113 void test_string_literal_chk (char *dst) in test_string_literal_chk() argument
115 memcpy (dst, a10, sizeof a10); in test_string_literal_chk()
116 mempcpy (dst, a10, sizeof a10); in test_string_literal_chk()
117 memmove (dst, a10, sizeof a10); in test_string_literal_chk()
119 memset (dst, 0, sizeof a10); in test_string_literal_chk()
121 stpncpy (dst, a10, sizeof a10); /* { dg-warning "\\\[-Wsizeof-pointer-memaccess]" } */ in test_string_literal_chk()
123 strncpy (dst, a10, sizeof a10); /* { dg-warning "\\\[-Wsizeof-pointer-memaccess]" } */ in test_string_literal_chk()
125 strncat (dst, a10, sizeof a10); /* { dg-warning "\\\[-Wsizeof-pointer-memaccess]" } */ in test_string_literal_chk()
127 …stpncpy (dst, a10, sizeof a10 - 1); /* { dg-warning "\\\[-Wsizeof-pointer-memaccess]" "" { xfail… in test_string_literal_chk()
129 …strncpy (dst, a10, sizeof a10 - 1); /* { dg-warning "\\\[-Wsizeof-pointer-memaccess]" "" { xfail… in test_string_literal_chk()
131 …strncat (dst, a10, sizeof a10 - 1); /* { dg-warning "\\\[-Wsizeof-pointer-memaccess]" "" { xfail… in test_string_literal_chk()