Home
last modified time | relevance | path

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

/bionic/tests/
Dbuffer_tests.cpp410 uint8_t* memory2; in RunCmpBufferOverreadTest() local
411 ASSERT_TRUE(posix_memalign(reinterpret_cast<void**>(&memory2), pagesize, in RunCmpBufferOverreadTest()
413 memset(memory2, 0x23, 2*pagesize); in RunCmpBufferOverreadTest()
416 ASSERT_TRUE(mprotect(&memory2[pagesize], pagesize, PROT_NONE) == 0); in RunCmpBufferOverreadTest()
420 uint8_t* buf2 = &memory2[pagesize-i]; in RunCmpBufferOverreadTest()
438 uint8_t* buf2 = &memory2[pagesize-j]; in RunCmpBufferOverreadTest()
445 ASSERT_TRUE(mprotect(&memory2[pagesize], pagesize, PROT_READ | PROT_WRITE) == 0); in RunCmpBufferOverreadTest()
447 free(memory2); in RunCmpBufferOverreadTest()