Searched refs:tiny_buffer (Results 1 – 1 of 1) sorted by relevance
/bionic/tests/ |
D | clang_fortify_tests.cpp | 188 char tiny_buffer[4]; in FORTIFY_TEST() member 192 EXPECT_NO_DEATH(memcpy(split.tiny_buffer, &split, sizeof(split))); in FORTIFY_TEST() 193 EXPECT_NO_DEATH(memcpy(split.tiny_buffer, &split, sizeof(split))); in FORTIFY_TEST() 194 EXPECT_NO_DEATH(memmove(split.tiny_buffer, &split, sizeof(split))); in FORTIFY_TEST() 195 EXPECT_NO_DEATH(mempcpy(split.tiny_buffer, &split, sizeof(split))); in FORTIFY_TEST() 196 EXPECT_NO_DEATH(memset(split.tiny_buffer, 0, sizeof(split))); in FORTIFY_TEST() 198 EXPECT_NO_DEATH(bcopy(&split, split.tiny_buffer, sizeof(split))); in FORTIFY_TEST() 199 EXPECT_NO_DEATH(bzero(split.tiny_buffer, sizeof(split))); in FORTIFY_TEST() 202 static_assert(sizeof(small_string) > sizeof(split.tiny_buffer), ""); in FORTIFY_TEST() 208 EXPECT_FORTIFY_DEATH_STRUCT(strcpy(split.tiny_buffer, small_string)); in FORTIFY_TEST() [all …]
|