[BusyBox] should xmalloc clear memmory ?

Glenn McGrath bug1 at optushome.com.au
Sat Feb 10 23:48:12 UTC 2001


Using grep memset -r *|wc -l 

there are 75 places where we use memset, 5 of them dont set it to 0,
probably a lot of the remaining 70 are happening imediately after
xmalloc.

So, if we cleared memory inside xmalloc we could remove upto 70
statments.

Would this be a bad idea for any reason ?


Glenn





More information about the busybox mailing list