Searched refs:small_string (Results 1 – 1 of 1) sorted by relevance
/bionic/tests/ |
D | clang_fortify_tests.cpp | 228 const char small_string[] = "Hi!!"; in FORTIFY_TEST() local 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()
|