Lines Matching refs:buf
47 char buf[4]; in test_sprintf() local
51 sprintf(buf, "foobar"); // NOLINT(runtime/printf) in test_sprintf()
54 sprintf(buf, "%s", "foobar"); // NOLINT(runtime/printf) in test_sprintf()
58 char buf[4]; in test_snprintf() local
62 snprintf(buf, 5, "foobar"); // NOLINT(runtime/printf) in test_snprintf()
65 snprintf(buf, 5, "%s", "foobar"); // NOLINT(runtime/printf) in test_snprintf()
68 snprintf(buf, 5, " %s ", "foobar"); // NOLINT(runtime/printf) in test_snprintf()
71 snprintf(buf, 5, "%d", 100000); // NOLINT(runtime/printf) in test_snprintf()
75 char buf[4]; in test_memcpy() local
78 memcpy(buf, "foobar", sizeof("foobar") + 100); in test_memcpy()
82 char buf[4]; in test_memmove() local
85 memmove(buf, "foobar", sizeof("foobar")); in test_memmove()
89 char buf[4]; in test_memset() local
92 memset(buf, 0, 6); in test_memset()
96 char buf[4]; in test_strcpy() local
99 strcpy(buf, "foobar"); // NOLINT(runtime/printf) in test_strcpy()
102 strcpy(buf, "quux"); in test_strcpy()
106 char buf[4]; in test_stpcpy() local
109 stpcpy(buf, "foobar"); in test_stpcpy()
112 stpcpy(buf, "quux"); in test_stpcpy()
116 char buf[4]; in test_strncpy() local
119 strncpy(buf, "foobar", sizeof("foobar")); in test_strncpy()
123 char buf[4] = ""; in test_strcat() local
126 strcat(buf, "foobar"); // NOLINT(runtime/printf) in test_strcat()
130 char buf[4] = ""; in test_strncat() local
133 strncat(buf, "foobar", sizeof("foobar")); in test_strncat()
138 char buf[4]; in test_vsprintf() local
142 vsprintf(buf, "foobar", va); in test_vsprintf()
148 char buf[4]; in test_vsnprintf() local
152 vsnprintf(buf, 5, "foobar", va); // NOLINT(runtime/printf) in test_vsnprintf()
158 char buf[4]; in test_fgets() local
161 fgets(buf, -1, stdin); in test_fgets()
164 fgets(buf, 6, stdin); in test_fgets()
168 char buf[4]; in test_recvfrom() local
172 recvfrom(0, buf, 6, 0, reinterpret_cast<sockaddr*>(&addr), nullptr); in test_recvfrom()
176 char buf[4] = {0}; in test_recv() local
179 recv(0, buf, 6, 0); in test_recv()
188 char buf[4]; in test_read() local
190 read(0, buf, 6); in test_read()
235 char buf[4]; in test_fread_overflow() local
237 fread(buf, 2, (size_t)-1, stdin); in test_fread_overflow()
241 char buf[4]; in test_fread_too_big() local
244 fread(buf, 1, 5, stdin); in test_fread_too_big()
248 char buf[4] = {0}; in test_fwrite_overflow() local
250 fwrite(buf, 2, (size_t)-1, stdout); in test_fwrite_overflow()
254 char buf[4] = {0}; in test_fwrite_too_big() local
257 fwrite(buf, 1, 5, stdout); in test_fwrite_too_big()
261 char buf[4]; in test_getcwd() local
263 getcwd(buf, 5); in test_getcwd()
267 char buf[4] = {0}; in test_pwrite64_size() local
269 pwrite64(STDOUT_FILENO, buf, 5, 0); in test_pwrite64_size()
273 void *buf = calloc(atoi("5"), 1); in test_pwrite64_too_big_malloc() local
275 pwrite64(STDOUT_FILENO, buf, SIZE_MAX, 0); in test_pwrite64_too_big_malloc()
279 char buf[4] = {0}; in test_pwrite64_too_big() local
281 pwrite64(STDOUT_FILENO, buf, SIZE_MAX, 0); in test_pwrite64_too_big()
285 char buf[4] = {0}; in test_write_size() local
287 write(STDOUT_FILENO, buf, 5); in test_write_size()
301 char buf[4] = {0}; in test_sendto() local
305 sendto(0, buf, 6, 0, reinterpret_cast<sockaddr*>(&addr), sizeof(sockaddr_in)); in test_sendto()
309 char buf[4] = {0}; in test_send() local
312 send(0, buf, 6, 0); in test_send()
316 char buf[4] = {0}; in test_realpath() local
319 realpath(".", buf); in test_realpath()