OSDN Git Service

malloc-simple: Make calloc() return zeroed memory
authorSteven J. Magnani <steve@digidescorp.com>
Wed, 9 Jun 2010 14:02:21 +0000 (09:02 -0500)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 27 Jul 2010 11:25:45 +0000 (13:25 +0200)
commit8a08aeeaa08bdad0ac577a9c7840f01cab1122c1
treeb9a7f573c85d9a74d8ff805198e62197c03947bf
parent8642946bd00e0c6dff9f08d84a63d32ce6648538
malloc-simple: Make calloc() return zeroed memory

The 0.9.31 release included a change to malloc-simple to request
uninitialized memory from noMMU kernels. Unfortunately, the corresponding
calloc() code assumed that memory returned by malloc() was already zeroed,
which leads to all kinds of nastiness.

Signed-off-by: Steven J. Magnani <steve@digidescorp.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
libc/stdlib/malloc-simple/alloc.c