Lines Matching refs:desc
79 * desc - Allocation descriptor for the violation.
91 MallocDescEx* desc,
102 desc->malloc_desc.av_count++;
165 addr < (target_ulong)mallocdesc_get_user_ptr(&desc->malloc_desc) ?
168 memcheck_dump_malloc_desc(desc, 1, 0);
193 MallocDescEx* desc;
204 desc = procdesc_find_malloc_for_range(proc, addr, data_size);
205 *desc_ptr = desc;
206 if (desc == NULL) {
212 if (addr < mallocdesc_get_user_ptr(&desc->malloc_desc)) {
218 user_range_end = mallocdesc_get_user_alloc_end(&desc->malloc_desc);
399 MallocDescEx desc;
407 memcheck_get_malloc_descriptor(&desc.malloc_desc, guest_address);
408 desc.flags = 0;
409 desc.call_stack = NULL;
410 desc.call_stack_count = 0;
412 proc = get_process_from_pid(desc.malloc_desc.allocator_pid);
415 desc.malloc_desc.allocator_pid);
421 desc
426 desc.call_stack_count = thread->call_stack_count;
427 if (desc.call_stack_count) {
428 desc.call_stack = qemu_malloc(desc.call_stack_count * sizeof(target_ulong));
429 if (desc.call_stack == NULL) {
431 desc.call_stack_count * sizeof(target_ulong));
441 desc.call_stack[indx] =
446 insert_res = procdesc_add_malloc(proc, &desc, &replaced);
450 invalidate_tlb_cache(desc.malloc_desc.ptr,
451 mallocdesc_get_alloc_end(&desc.malloc_desc));
460 memcheck_dump_malloc_desc(&desc, 1, 1);
470 memcheck_dump_malloc_desc(&desc, 1, 1);
480 MallocFree desc;
486 memcheck_get_free_descriptor(&desc, guest_address);
488 proc = get_process_from_pid(desc.free_pid);
491 desc.free_pid);
497 pull_res = procdesc_pull_malloc(proc, desc.ptr, &pulled);
499 av_invalid_pointer(proc, desc.ptr, 1);
505 if (desc.ptr != mallocdesc_get_user_ptr(&pulled.malloc_desc)) {
514 desc.ptr,
551 memcheck_set_malloc_descriptor(qdesc.desc, &found->malloc_desc);
580 MallocDescEx* desc;
582 int res = memcheck_common_access_validation(addr, data_size, &proc, &desc);
584 av_access_violation(proc, desc, addr, data_size, 0, retaddr, 1);
615 MallocDescEx* desc;
618 int res = memcheck_common_access_validation(addr, data_size, &proc, &desc);
620 av_access_violation(proc, desc, addr, data_size, value, retaddr, 0);