[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Does malloc() have to zero the block?
- From: Ralph Hempel <rhempel@...>
- Date: Wed, 19 Sep 2007 13:36:01 -0400
Probably a stupid question, but I'm tracking down an issue with
the Lua interpreter crashing on me in a small (ARM7) target
WRT memory allocation, does Lua expect memory from malloc() or
realloc() to be set to 0?
It turns out that realloc() is the only library function that is
called, and my implementation of realloc() calls malloc() if the
pointer to the original data is NULL.