This is the mail archive of the
glibc-cvs@sources.redhat.com
mailing list for the glibc project.
libc/malloc hooks.c
- From: drepper at sourceware dot org
- To: glibc-cvs at sources dot redhat dot com
- Date: 27 Apr 2005 01:36:51 -0000
- Subject: libc/malloc hooks.c
CVSROOT: /cvs/glibc
Module name: libc
Changes by: drepper@sources.redhat.com 2005-04-27 01:36:51
Modified files:
malloc : hooks.c
Log message:
(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.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/malloc/hooks.c.diff?cvsroot=glibc&r1=1.16&r2=1.17