Searched refs:kBogusFD (Results 1 – 1 of 1) sorted by relevance
/bionic/tests/ |
D | clang_fortify_tests.cpp | 166 const static int kBogusFD = -1; variable 477 EXPECT_FORTIFY_DEATH(recv(kBogusFD, small_buffer, sizeof(small_buffer) + 1, 0)); in FORTIFY_TEST() 479 EXPECT_FORTIFY_DEATH(recvfrom(kBogusFD, small_buffer, sizeof(small_buffer) + 1, 0, 0, 0)); in FORTIFY_TEST() 482 EXPECT_FORTIFY_DEATH(send(kBogusFD, small_buffer, sizeof(small_buffer) + 1, 0)); in FORTIFY_TEST() 484 EXPECT_FORTIFY_DEATH(sendto(kBogusFD, small_buffer, sizeof(small_buffer) + 1, 0, 0, 0)); in FORTIFY_TEST() 493 EXPECT_NO_DEATH(recv(kBogusFD, split.tiny_buffer, sizeof(split), 0)); in FORTIFY_TEST() 494 EXPECT_NO_DEATH(recvfrom(kBogusFD, split.tiny_buffer, sizeof(split), 0, 0, 0)); in FORTIFY_TEST() 544 EXPECT_FORTIFY_DEATH(read(kBogusFD, small_buffer, sizeof(small_buffer) + 1)); in FORTIFY_TEST() 549 EXPECT_FORTIFY_DEATH(pread(kBogusFD, small_buffer, sizeof(small_buffer) + 1, 0)); in FORTIFY_TEST() 554 EXPECT_FORTIFY_DEATH(pread64(kBogusFD, small_buffer, sizeof(small_buffer) + 1, 0)); in FORTIFY_TEST() [all …]
|