Home
last modified time | relevance | path

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

/bionic/tests/
Dclang_fortify_tests.cpp169 char small_buffer[8] = {}; in FORTIFY_TEST() local
172 char large_buffer[sizeof(small_buffer) + 1] = {}; in FORTIFY_TEST()
174 EXPECT_FORTIFY_DEATH(memcpy(small_buffer, large_buffer, sizeof(large_buffer))); in FORTIFY_TEST()
176 EXPECT_FORTIFY_DEATH(memmove(small_buffer, large_buffer, sizeof(large_buffer))); in FORTIFY_TEST()
180 EXPECT_FORTIFY_DEATH(mempcpy(small_buffer, large_buffer, sizeof(large_buffer))); in FORTIFY_TEST()
182 EXPECT_FORTIFY_DEATH(memset(small_buffer, 0, sizeof(large_buffer))); in FORTIFY_TEST()
184 EXPECT_NO_DEATH(memset(small_buffer, sizeof(small_buffer), 0)); in FORTIFY_TEST()
186 EXPECT_FORTIFY_DEATH(bcopy(large_buffer, small_buffer, sizeof(large_buffer))); in FORTIFY_TEST()
188 EXPECT_FORTIFY_DEATH(bzero(small_buffer, sizeof(large_buffer))); in FORTIFY_TEST()
193 static_assert(sizeof(large_string) > sizeof(small_buffer), ""); in FORTIFY_TEST()
[all …]