(mem2chunk_check): Add magic_p argument, set *magic_p
authordrepper <drepper>
Wed, 27 Apr 2005 01:36:51 +0000 (01:36 +0000)
committerdrepper <drepper>
Wed, 27 Apr 2005 01:36:51 +0000 (01:36 +0000)
commit5d9d61dd6d6720e396c2cfa5e007055bca4ac8dc
treeb587134b4d75f5f847d74194d67d654b4133bcfe
parent3eb1598e07169caa9596d59d89702617c7a98a9d
(mem2chunk_check): Add magic_p argument, set *magic_p
if magic_p is not NULL.
(top_check): Invoke MALLOC_FAILURE_ACTION if MORECORE failed.
(malloc_check): Fail if sz == -1.
(free_check): Adjust mem2chunk_check caller.
(realloc_check): Likewise.  Fail if bytes == -1.  If bytes == 0 and
oldmem != NULL, call free_check and return NULL.  If reallocating
and returning NULL, invert magic byte again to make oldmem valid
region for further checking.
(memalign_check): Fail if bytes == -1.
malloc/hooks.c