Lines Matching refs:memory
355 uint8_t* memory; in RunSingleBufferOverreadTest() local
356 ASSERT_TRUE(posix_memalign(reinterpret_cast<void**>(&memory), pagesize, in RunSingleBufferOverreadTest()
358 memset(memory, 0x23, 2*pagesize); in RunSingleBufferOverreadTest()
361 ASSERT_TRUE(mprotect(&memory[pagesize], pagesize, PROT_NONE) == 0); in RunSingleBufferOverreadTest()
364 uint8_t* buf = &memory[pagesize-i]; in RunSingleBufferOverreadTest()
368 ASSERT_TRUE(mprotect(&memory[pagesize], pagesize, PROT_READ | PROT_WRITE) == 0); in RunSingleBufferOverreadTest()
369 free(memory); in RunSingleBufferOverreadTest()
376 uint8_t* memory; in RunSrcDstBufferOverreadTest() local
377 ASSERT_TRUE(posix_memalign(reinterpret_cast<void**>(&memory), pagesize, in RunSrcDstBufferOverreadTest()
379 memset(memory, 0x23, 2*pagesize); in RunSrcDstBufferOverreadTest()
382 ASSERT_TRUE(mprotect(&memory[pagesize], pagesize, PROT_NONE) == 0); in RunSrcDstBufferOverreadTest()
386 uint8_t* src = &memory[pagesize-i]; in RunSrcDstBufferOverreadTest()
390 ASSERT_TRUE(mprotect(&memory[pagesize], pagesize, PROT_READ | PROT_WRITE) == 0); in RunSrcDstBufferOverreadTest()
391 free(memory); in RunSrcDstBufferOverreadTest()