dynamic memory automatically zero'd
ame.fedora at gmail.com
Fri Aug 6 15:07:07 UTC 2010
On Fri, Aug 6, 2010 at 7:44 AM, Stefan Schulze Frielinghaus wrote:
> if you allocate memory, e.g. via malloc(3), then it is automatically set
> to zero. This is actually a security feature quite common nowadays. I
> would like to know when this feature has made it into Fedora or in RHEL.
> Is this a mandatory feature of some security policy as e.g. the Common
> Criteria? I couldn't find much information about this. Therefore, any
> pointers, hints and so on are welcomed!
man malloc: use calloc() instead of malloc() if you want the allocated
memory to be zeroed.
More information about the users