Home
last modified time | relevance | path

Searched refs:large_string (Results 1 – 1 of 1) sorted by relevance

/bionic/tests/
Dclang_fortify_tests.cpp192 const char large_string[] = "Hello!!!"; in FORTIFY_TEST() local
193 static_assert(sizeof(large_string) > sizeof(small_buffer), ""); in FORTIFY_TEST()
196 EXPECT_FORTIFY_DEATH(strcpy(small_buffer, large_string)); in FORTIFY_TEST()
198 EXPECT_FORTIFY_DEATH(stpcpy(small_buffer, large_string)); in FORTIFY_TEST()
200 EXPECT_FORTIFY_DEATH(strncpy(small_buffer, large_string, sizeof(large_string))); in FORTIFY_TEST()
202 EXPECT_FORTIFY_DEATH(stpncpy(small_buffer, large_string, sizeof(large_string))); in FORTIFY_TEST()
204 EXPECT_FORTIFY_DEATH(strcat(small_buffer, large_string)); in FORTIFY_TEST()
206 EXPECT_FORTIFY_DEATH(strncat(small_buffer, large_string, sizeof(large_string))); in FORTIFY_TEST()
208 EXPECT_FORTIFY_DEATH(strlcpy(small_buffer, large_string, sizeof(large_string))); in FORTIFY_TEST()
210 EXPECT_FORTIFY_DEATH(strlcat(small_buffer, large_string, sizeof(large_string))); in FORTIFY_TEST()