Lines Matching refs:size
26 extern void *__real_malloc(size_t size);
27 extern void *__real_realloc(void *ptr, size_t size);
28 extern void *__real_calloc(int nmemb, int size);
52 size_t size; member
62 return (struct ftr *)(((char *)(hdr + 1)) + hdr->size); in to_ftr()
186 static inline void add(struct hdr *hdr, size_t size) in add() argument
190 hdr->size = size; in add()
212 memset(user(hdr), FREE_POISON, hdr->size); in poison()
219 for (i = 0; i < hdr->size; i++) in was_used_after_free()
232 user(hdr), hdr->size); in check_guards()
244 user(hdr), hdr->size); in check_guards()
269 user(hdr), hdr->size); in __check_allocation()
279 user(hdr), hdr->size); in __check_allocation()
283 user(hdr), hdr->size); in __check_allocation()
347 void* __wrap_malloc(size_t size) in __wrap_malloc() argument
350 struct hdr *hdr = __real_malloc(sizeof(struct hdr) + size + in __wrap_malloc()
355 add(hdr, size); in __wrap_malloc()
375 user(hdr), hdr->size); in __wrap_free()
377 user(hdr), hdr->size); in __wrap_free()
381 user(hdr), hdr->size); in __wrap_free()
384 user(hdr), hdr->size); in __wrap_free()
402 void *__wrap_realloc(void *ptr, size_t size) in __wrap_realloc() argument
406 if (!size) { in __wrap_realloc()
412 return __wrap_malloc(size); in __wrap_realloc()
423 user(hdr), size, hdr->size); in __wrap_realloc()
425 user(hdr), hdr->size); in __wrap_realloc()
429 user(hdr), hdr->size); in __wrap_realloc()
432 user(hdr), hdr->size); in __wrap_realloc()
443 user(hdr), size); in __wrap_realloc()
446 return __real_realloc(0, size); in __wrap_realloc()
451 hdr = __real_realloc(hdr, sizeof(struct hdr) + size + sizeof(struct ftr)); in __wrap_realloc()
454 add(hdr, size); in __wrap_realloc()
461 void *__wrap_calloc(int nmemb, size_t size) in __wrap_calloc() argument
465 size_t __size = nmemb * size; in __wrap_calloc()
487 del->size, user(del), num); in heaptracker_free_leaked_memory()
491 user(del), del->size); in heaptracker_free_leaked_memory()