mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Update.
* 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:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user