Lines Matching refs:tiny_buffer
215 char tiny_buffer[4]; in FORTIFY_TEST() member
219 EXPECT_NO_DEATH(memcpy(split.tiny_buffer, &split, sizeof(split))); in FORTIFY_TEST()
220 EXPECT_NO_DEATH(memcpy(split.tiny_buffer, &split, sizeof(split))); in FORTIFY_TEST()
221 EXPECT_NO_DEATH(memmove(split.tiny_buffer, &split, sizeof(split))); in FORTIFY_TEST()
222 EXPECT_NO_DEATH(mempcpy(split.tiny_buffer, &split, sizeof(split))); in FORTIFY_TEST()
223 EXPECT_NO_DEATH(memset(split.tiny_buffer, 0, sizeof(split))); in FORTIFY_TEST()
225 EXPECT_NO_DEATH(bcopy(&split, split.tiny_buffer, sizeof(split))); in FORTIFY_TEST()
226 EXPECT_NO_DEATH(bzero(split.tiny_buffer, sizeof(split))); in FORTIFY_TEST()
229 static_assert(sizeof(small_string) > sizeof(split.tiny_buffer), ""); in FORTIFY_TEST()
234 EXPECT_FORTIFY_DEATH_STRUCT(strcpy(split.tiny_buffer, small_string)); in FORTIFY_TEST()
239 EXPECT_FORTIFY_DEATH_STRUCT(stpcpy(split.tiny_buffer, small_string)); in FORTIFY_TEST()
244 EXPECT_FORTIFY_DEATH_STRUCT(strncpy(split.tiny_buffer, small_string, sizeof(small_string))); in FORTIFY_TEST()
249 EXPECT_FORTIFY_DEATH_STRUCT(stpncpy(split.tiny_buffer, small_string, sizeof(small_string))); in FORTIFY_TEST()
254 EXPECT_FORTIFY_DEATH_STRUCT(strcat(split.tiny_buffer, small_string)); in FORTIFY_TEST()
259 EXPECT_FORTIFY_DEATH_STRUCT(strncat(split.tiny_buffer, small_string, sizeof(small_string))); in FORTIFY_TEST()
264 EXPECT_FORTIFY_DEATH_STRUCT(strlcat(split.tiny_buffer, small_string, sizeof(small_string))); in FORTIFY_TEST()
269 EXPECT_FORTIFY_DEATH_STRUCT(strlcpy(split.tiny_buffer, small_string, sizeof(small_string))); in FORTIFY_TEST()
489 char tiny_buffer[4]; in FORTIFY_TEST() member
493 EXPECT_NO_DEATH(recv(kBogusFD, split.tiny_buffer, sizeof(split), 0)); in FORTIFY_TEST()
494 EXPECT_NO_DEATH(recvfrom(kBogusFD, split.tiny_buffer, sizeof(split), 0, 0, 0)); in FORTIFY_TEST()
586 char tiny_buffer[4]; in FORTIFY_TEST() member
590 EXPECT_NO_DEATH(read(kBogusFD, split.tiny_buffer, sizeof(split))); in FORTIFY_TEST()
591 EXPECT_NO_DEATH(pread(kBogusFD, split.tiny_buffer, sizeof(split), 0)); in FORTIFY_TEST()
592 EXPECT_NO_DEATH(pread64(kBogusFD, split.tiny_buffer, sizeof(split), 0)); in FORTIFY_TEST()
593 EXPECT_NO_DEATH(write(kBogusFD, split.tiny_buffer, sizeof(split))); in FORTIFY_TEST()
594 EXPECT_NO_DEATH(pwrite(kBogusFD, split.tiny_buffer, sizeof(split), 0)); in FORTIFY_TEST()
595 EXPECT_NO_DEATH(pwrite64(kBogusFD, split.tiny_buffer, sizeof(split), 0)); in FORTIFY_TEST()
600 EXPECT_FORTIFY_DEATH_STRUCT(readlink("/", split.tiny_buffer, sizeof(split))); in FORTIFY_TEST()
604 EXPECT_FORTIFY_DEATH_STRUCT(getcwd(split.tiny_buffer, sizeof(split))); in FORTIFY_TEST()