Searched refs:kBogusFD (Results 1 – 1 of 1) sorted by relevance
/bionic/tests/ |
D | clang_fortify_tests.cpp | 138 const static int kBogusFD = -1; variable 454 EXPECT_FORTIFY_DEATH(recv(kBogusFD, small_buffer, sizeof(small_buffer) + 1, 0)); in FORTIFY_TEST() 456 EXPECT_FORTIFY_DEATH(recvfrom(kBogusFD, small_buffer, sizeof(small_buffer) + 1, 0, 0, 0)); in FORTIFY_TEST() 459 EXPECT_FORTIFY_DEATH(send(kBogusFD, small_buffer, sizeof(small_buffer) + 1, 0)); in FORTIFY_TEST() 461 EXPECT_FORTIFY_DEATH(sendto(kBogusFD, small_buffer, sizeof(small_buffer) + 1, 0, 0, 0)); in FORTIFY_TEST() 470 EXPECT_NO_DEATH(recv(kBogusFD, split.tiny_buffer, sizeof(split), 0)); in FORTIFY_TEST() 471 EXPECT_NO_DEATH(recvfrom(kBogusFD, split.tiny_buffer, sizeof(split), 0, 0, 0)); in FORTIFY_TEST() 521 EXPECT_FORTIFY_DEATH(read(kBogusFD, small_buffer, sizeof(small_buffer) + 1)); in FORTIFY_TEST() 526 EXPECT_FORTIFY_DEATH(pread(kBogusFD, small_buffer, sizeof(small_buffer) + 1, 0)); in FORTIFY_TEST() 531 EXPECT_FORTIFY_DEATH(pread64(kBogusFD, small_buffer, sizeof(small_buffer) + 1, 0)); in FORTIFY_TEST() [all …]
|