Merge "Remove stack address check in cfi_basic test." into android10-tests-dev

This commit is contained in:
Treehugger Robot 2020-07-29 15:09:52 +00:00 committed by Gerrit Code Review
commit c9608ab2e2

View file

@ -85,9 +85,6 @@ TEST(cfi_test, basic) {
EXPECT_EQ(get_global_address(), get_last_address());
EXPECT_EQ(c, get_count());
// CFI check for a stack address. This is always invalid and gets the process killed.
EXPECT_DEATH(__cfi_slowpath(45, reinterpret_cast<void*>(&c)), "");
// CFI check for a heap address. This is always invalid and gets the process killed.
void* p = malloc(4096);
EXPECT_DEATH(__cfi_slowpath(46, p), "");