Lines Matching refs:ptr
165 void *ptr)
170 if (!ptr)
173 hdr = header_from_data(ptr);
177 ptr);
186 ptr);
199 memset(ptr, DEBUG_FREED_BYTE, hdr->size);
215 void *ptr = debug_malloc( file, line, function, count * size );
216 if (ptr)
217 memset( ptr, 0, count * size );
218 return ptr;
310 void *ptr;
314 ptr = data_from_header(hdr);
320 ptr);
328 (unsigned long) hdr->size, ptr);
338 ptr);
358 debug_memory_tag(void *ptr, unsigned tag)
362 if (!ptr)
365 hdr = header_from_data(ptr);
367 debug_printf("%s corrupted memory at %p\n", __FUNCTION__, ptr);
379 debug_memory_check_block(void *ptr)
384 if (!ptr)
387 hdr = header_from_data(ptr);
392 hdr->file, hdr->line, hdr->function, ptr);
398 hdr->file, hdr->line, hdr->function, ptr);
418 const char *ptr;
422 ptr = (const char *) data_from_header(hdr);
426 hdr->file, hdr->line, hdr->function, ptr);
432 hdr->file, hdr->line, hdr->function, ptr);
441 if (ptr[i] != DEBUG_FREED_BYTE) {
443 i, ptr, hdr->size, ptr[i]);
446 assert(ptr[i] == DEBUG_FREED_BYTE);