Lines Matching refs:myfoo
57 foo myfoo; in TEST_F() local
59 ASSERT_FORTIFY(stpncpy(myfoo.a, "01234567890", copy_amt)); in TEST_F()
67 foo myfoo; in TEST_F() local
68 memset(&myfoo, 0, sizeof(myfoo)); in TEST_F()
69 myfoo.one[0] = 'A'; // not null terminated string in TEST_F()
70 ASSERT_FORTIFY(stpncpy(myfoo.b, myfoo.one, sizeof(myfoo.b))); in TEST_F()
78 foo myfoo; in TEST_F() local
80 ASSERT_FORTIFY(strncpy(myfoo.a, "01234567890", copy_amt)); in TEST_F()
88 foo myfoo; in TEST_F() local
89 memset(&myfoo, 0, sizeof(myfoo)); in TEST_F()
90 myfoo.one[0] = 'A'; // not null terminated string in TEST_F()
91 ASSERT_FORTIFY(strncpy(myfoo.b, myfoo.one, sizeof(myfoo.b))); in TEST_F()
99 foo myfoo; in TEST_F() local
102 ASSERT_FORTIFY(sprintf(myfoo.a, "%s", source_buf)); in TEST_F()
110 foo myfoo; in TEST_F() local
111 ASSERT_FORTIFY(sprintf(myfoo.a, "0123456789")); in TEST_F()
119 foo myfoo; in vsprintf_helper2() local
124 result = vsprintf(myfoo.a, fmt, va); // should crash here in vsprintf_helper2()
142 foo myfoo; in vsnprintf_helper2() local
148 result = vsnprintf(myfoo.a, size, fmt, va); // should crash here in vsnprintf_helper2()
168 foo myfoo; in TEST_F() local
170 ASSERT_FORTIFY(stpcpy(myfoo.empty, src)); in TEST_F()
184 foo myfoo; in TEST_F() local
186 ASSERT_FORTIFY(strcpy(myfoo.empty, src)); in TEST_F()
200 foo myfoo; in TEST_F() local
202 ASSERT_FORTIFY(strcpy(myfoo.empty, src)); in TEST_F()
216 foo myfoo; in TEST_F() local
218 ASSERT_FORTIFY(strcpy(myfoo.one, src)); in TEST_F()
231 foo myfoo; in TEST_F() local
232 memcpy(myfoo.a, "0123456789", sizeof(myfoo.a)); in TEST_F()
233 myfoo.b[0] = '\0'; in TEST_F()
234 ASSERT_FORTIFY(printf("%s", strchr(myfoo.a, 'a'))); in TEST_F()
246 foo myfoo; in TEST_F() local
247 memcpy(myfoo.a, "0123456789", 10); in TEST_F()
248 memcpy(myfoo.b, "01234", 6); in TEST_F()
249 ASSERT_FORTIFY(printf("%s", strrchr(myfoo.a, 'a'))); in TEST_F()
261 foo myfoo; in TEST_F() local
262 strcpy(myfoo.a, "01"); in TEST_F()
263 size_t n = strlen(myfoo.a); in TEST_F()
264 ASSERT_FORTIFY(strlcpy(myfoo.one, myfoo.a, n)); in TEST_F()
276 foo myfoo; in TEST_F() local
277 strcpy(myfoo.a, "01"); in TEST_F()
278 myfoo.one[0] = '\0'; in TEST_F()
279 size_t n = strlen(myfoo.a); in TEST_F()
280 ASSERT_FORTIFY(strlcat(myfoo.one, myfoo.a, n)); in TEST_F()
291 foo myfoo; in TEST_F() local
293 strncpy(myfoo.a, "012345678", n); in TEST_F()
294 ASSERT_FORTIFY(strncat(myfoo.a, "9", n)); in TEST_F()
302 foo myfoo; in TEST_F() local
303 myfoo.a[0] = '\0'; in TEST_F()
305 ASSERT_FORTIFY(strncat(myfoo.a, "0123456789", n)); in TEST_F()
310 foo myfoo; in TEST_F() local
311 memcpy(myfoo.a, "0123456789", sizeof(myfoo.a)); // unterminated string in TEST_F()
312 myfoo.b[0] = '\0'; in TEST_F()
314 ASSERT_FORTIFY(strncat(myfoo.b, myfoo.a, n)); in TEST_F()
323 foo myfoo; in TEST_F() local
324 myfoo.a[0] = '\0'; in TEST_F()
325 ASSERT_FORTIFY(strcat(myfoo.a, src)); in TEST_F()
330 foo myfoo; in TEST_F() local
331 memcpy(myfoo.a, "0123456789", sizeof(myfoo.a)); // unterminated string in TEST_F()
332 myfoo.b[0] = '\0'; in TEST_F()
333 ASSERT_FORTIFY(strcat(myfoo.b, myfoo.a)); in TEST_F()
337 foo myfoo; in TEST_F() local
338 strcpy(myfoo.a, "012345678"); in TEST_F()
339 size_t n = strlen(myfoo.a) + 2; in TEST_F()
340 ASSERT_FORTIFY(snprintf(myfoo.b, n, "a%s", myfoo.a)); in TEST_F()
344 foo myfoo; in TEST_F() local
345 memcpy(myfoo.b, "0123456789", sizeof(myfoo.b)); in TEST_F()
347 ASSERT_FORTIFY(bzero(myfoo.b, n)); in TEST_F()