Home
last modified time | relevance | path

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

/external/rust/crates/tokio/tests/support/
Dleaked_buffers.rs21 let new_mem = vec![0u8; size].into_boxed_slice(); in create() localVariable
22 self.leaked_vecs.push(new_mem); in create()
23 let new_mem = self.leaked_vecs.last_mut().unwrap(); in create() localVariable
24 std::slice::from_raw_parts_mut(new_mem.as_mut_ptr(), new_mem.len()) in create()
/external/ltp/testcases/kernel/syscalls/memfd_create/
Dmemfd_create03.c121 void *new_mem; in test_max_hugepages() local
133 new_mem = mmap(NULL, hps, 0, MAP_PRIVATE, new_fd, 0); in test_max_hugepages()
134 if (new_mem == MAP_FAILED) { in test_max_hugepages()
147 SAFE_MUNMAP(new_mem, hps); in test_max_hugepages()
/external/mesa3d/src/intel/tools/
Daub_mem.c145 struct phys_mem *new_mem = calloc(1, sizeof(*new_mem)); in ensure_phys_mem() local
146 new_mem->phys_addr = phys_addr; in ensure_phys_mem()
147 new_mem->fd_offset = mem->mem_fd_len; in ensure_phys_mem()
152 new_mem->data = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, in ensure_phys_mem()
153 mem->mem_fd, new_mem->fd_offset); in ensure_phys_mem()
154 assert(new_mem->data != MAP_FAILED); in ensure_phys_mem()
156 rb_tree_insert_at(&mem->mem, node, &new_mem->node, cmp < 0); in ensure_phys_mem()
157 node = &new_mem->node; in ensure_phys_mem()
/external/libcap/libcap/
Dexecable.h38 char *new_mem = realloc(mem, size+1); in __execable_parse_args() local
39 if (new_mem == NULL) { in __execable_parse_args()
46 mem = new_mem; in __execable_parse_args()
/external/webp/src/enc/
Dpicture_enc.c203 uint8_t* new_mem; in WebPMemoryWrite() local
207 new_mem = (uint8_t*)WebPSafeMalloc(next_max_size, 1); in WebPMemoryWrite()
208 if (new_mem == NULL) { in WebPMemoryWrite()
212 memcpy(new_mem, w->mem, w->size); in WebPMemoryWrite()
215 w->mem = new_mem; in WebPMemoryWrite()
/external/AFLplusplus/src/
Dafl-fuzz-run.c100 u8 * new_mem = *mem; in write_to_testcase() local
108 el->afl_custom_post_process(el->data, new_mem, new_size, &new_buf); in write_to_testcase()
117 new_mem = new_buf; in write_to_testcase()
133 if (new_mem != *mem) { in write_to_testcase()
135 *mem = new_mem; in write_to_testcase()
180 u8 * new_mem = mem; in write_with_gap() local
187 new_mem = mem_trimmed; in write_with_gap()
212 el->afl_custom_post_process(el->data, new_mem, new_size, &new_buf); in write_with_gap()
221 new_mem = new_buf; in write_with_gap()
235 memcpy(afl->fsrv.shmem_fuzz, new_mem, new_size); in write_with_gap()
[all …]
/external/compiler-rt/lib/asan/
Dasan_interceptors.cc563 void *new_mem = asan_malloc(length + 1, &stack); in INTERCEPTOR() local
564 REAL(memcpy)(new_mem, s, length + 1); in INTERCEPTOR()
565 return reinterpret_cast<char*>(new_mem); in INTERCEPTOR()
579 void *new_mem = asan_malloc(length + 1, &stack); in INTERCEPTOR() local
580 REAL(memcpy)(new_mem, s, length + 1); in INTERCEPTOR()
581 return reinterpret_cast<char*>(new_mem); in INTERCEPTOR()