Some weeks ago, I was looking for good practices [in C] to manage the memory -allocation and free- in a secure way. In my search I found
this site, where shows several functions in C/C++ and how you should use them to ensure a correct behavior. Well I read something about realloc and memset, and I made a mini library where I wrote secure alternatives for both [memset and realloc].
I hope this be usefull for somebody =)
Download:
http://spartans.homeunix.net/~crosvera/codes/s_funcs.tar.gzor
http://crosvera.0fees.net/codes/s_funcs.tar.gz
[Unix only]
See ya!
[DISCLAIMER: If you found some mistake in my English, please tell me.]