From 3ea1b82e6bb75e69f05c3e4c90e21210598b0174 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 12 Apr 2000 21:10:45 +0000 Subject: [PATCH] Update. * malloc/malloc.c (cALLOc): Clear only what the user asked for and avoid writing over boundary. Patch by Greg McGary . --- ChangeLog | 4 ++++ malloc/malloc.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b69ec5f..8c84f14 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2000-04-12 Ulrich Drepper + * malloc/malloc.c (cALLOc): Clear only what the user asked for and + avoid writing over boundary. + Patch by Greg McGary . + * sysdeps/arm/memprof.h: New file. 2000-04-12 Andreas Jaeger diff --git a/malloc/malloc.c b/malloc/malloc.c index f674f4e..2351963 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -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; } -- 2.7.4