Lines Matching refs:bytes
169 __debug_malloc (size_t bytes) in __debug_malloc() argument
173 return (*hook)(bytes, RETURN_ADDRESS (0)); in __debug_malloc()
176 size_t orig_bytes = bytes; in __debug_malloc()
178 || !malloc_mcheck_before (&bytes, &victim))) in __debug_malloc()
181 ? malloc_check (bytes) : __libc_malloc (bytes)); in __debug_malloc()
217 __debug_realloc (void *oldmem, size_t bytes) in strong_alias()
222 return (*hook)(oldmem, bytes, RETURN_ADDRESS (0)); in strong_alias()
224 size_t orig_bytes = bytes, oldsize = 0; in strong_alias()
228 || !realloc_mcheck_before (&oldmem, &bytes, &oldsize, &victim))) in strong_alias()
236 if (bytes == 0 && oldmem != NULL) in strong_alias()
242 victim = __debug_malloc (bytes); in strong_alias()
249 if (bytes > osize - SIZE_SZ) in strong_alias()
250 bytes = osize - SIZE_SZ; in strong_alias()
251 memcpy (victim, oldmem, bytes); in strong_alias()
256 victim = realloc_check (oldmem, bytes); in strong_alias()
258 victim = __libc_realloc (oldmem, bytes); in strong_alias()
271 _debug_mid_memalign (size_t alignment, size_t bytes, const void *address) in strong_alias()
276 return (*hook)(alignment, bytes, address); in strong_alias()
279 size_t orig_bytes = bytes; in strong_alias()
282 || !memalign_mcheck_before (alignment, &bytes, &victim))) in strong_alias()
285 ? memalign_check (alignment, bytes) in strong_alias()
286 : __libc_memalign (alignment, bytes)); in strong_alias()
297 __debug_memalign (size_t alignment, size_t bytes) in __debug_memalign() argument
299 return _debug_mid_memalign (alignment, bytes, RETURN_ADDRESS (0)); in __debug_memalign()
305 __debug_pvalloc (size_t bytes) in strong_alias()
313 if (__glibc_unlikely (__builtin_add_overflow (bytes, in strong_alias()
327 __debug_valloc (size_t bytes) in strong_alias()
332 return _debug_mid_memalign (pagesize, bytes, RETURN_ADDRESS (0)); in strong_alias()
337 __debug_posix_memalign (void **memptr, size_t alignment, size_t bytes) in strong_alias()
346 *memptr = _debug_mid_memalign (alignment, bytes, RETURN_ADDRESS (0)); in strong_alias()
358 size_t bytes; in strong_alias() local
360 if (__glibc_unlikely (__builtin_mul_overflow (nmemb, size, &bytes))) in strong_alias()
369 void *mem = (*hook)(bytes, RETURN_ADDRESS (0)); in strong_alias()
372 memset (mem, 0, bytes); in strong_alias()
377 size_t orig_bytes = bytes; in strong_alias()
381 || !malloc_mcheck_before (&bytes, &victim))) in strong_alias()
384 ? malloc_check (bytes) : __libc_malloc (bytes)); in strong_alias()