Lines Matching refs:memory
363 uint8_t* memory; in RunSingleBufferOverreadTest() local
364 ASSERT_TRUE(posix_memalign(reinterpret_cast<void**>(&memory), pagesize, in RunSingleBufferOverreadTest()
366 memset(memory, 0x23, 2*pagesize); in RunSingleBufferOverreadTest()
369 ASSERT_TRUE(MprotectHeap(&memory[pagesize], pagesize, PROT_NONE) == 0); in RunSingleBufferOverreadTest()
372 uint8_t* buf = &memory[pagesize-i]; in RunSingleBufferOverreadTest()
376 ASSERT_TRUE(MprotectHeap(&memory[pagesize], pagesize, PROT_READ | PROT_WRITE) == 0); in RunSingleBufferOverreadTest()
377 free(memory); in RunSingleBufferOverreadTest()
384 uint8_t* memory; in RunSrcDstBufferOverreadTest() local
385 ASSERT_TRUE(posix_memalign(reinterpret_cast<void**>(&memory), pagesize, in RunSrcDstBufferOverreadTest()
387 memset(memory, 0x23, 2*pagesize); in RunSrcDstBufferOverreadTest()
390 ASSERT_TRUE(MprotectHeap(&memory[pagesize], pagesize, PROT_NONE) == 0); in RunSrcDstBufferOverreadTest()
397 uint8_t* src = &memory[pagesize-j]; in RunSrcDstBufferOverreadTest()
402 ASSERT_TRUE(MprotectHeap(&memory[pagesize], pagesize, PROT_READ | PROT_WRITE) == 0); in RunSrcDstBufferOverreadTest()
403 free(memory); in RunSrcDstBufferOverreadTest()