* malloc/malloc.c (cALLOc): Clear only what the user asked for and
	avoid writing over boundary.
	Patch by Greg McGary <gkm@eng.ascend.com>.
This commit is contained in:
Ulrich Drepper 2000-04-12 21:10:45 +00:00
parent aee4670499
commit 3ea1b82e6b
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
2000-04-12 Ulrich Drepper <drepper@redhat.com>
* malloc/malloc.c (cALLOc): Clear only what the user asked for and
avoid writing over boundary.
Patch by Greg McGary <gkm@eng.ascend.com>.
* sysdeps/arm/memprof.h: New file.
2000-04-12 Andreas Jaeger <aj@suse.de>

View File

@ -3738,7 +3738,7 @@ Void_t* cALLOc(n, elem_size) size_t n; size_t elem_size;
}
#endif
MALLOC_ZERO(mem, csz - SIZE_SZ);
MALLOC_ZERO(mem, cs);
return mem;
}