[U-Boot] [PATCH] malloc: Fix issue with calloc memory possibly being non-zero
Wolfgang Denk
wd at denx.de
Mon Nov 15 23:06:36 CET 2010
Dear Kumar Gala,
In message <1289854274-7006-1-git-send-email-galak at kernel.crashing.org> you wrote:
> Since we set #define MORECORE_CLEARS 1, the code assumes 'sbrk' always
> returns zero'd out memory. However since its possible that free()
> returns memory ack to sbrk() via malloc_trim we could possible get
> non-zero'd memory from sbrk() if it allocates back memory that was
> previously freed to it.
I confirm that the test case works fine here, too. So:
Tested-by: Wolfgang Denk <wd at denx.de>
But the commit message needs serious rework before this can get
applied.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
If ignorance is bliss, why aren't there more happy people?
More information about the U-Boot
mailing list