Hacker News new | comments | show | ask | jobs | submit login

That won't work here. Here, the goal is to have 'cfree': zero'ing out memory and then freeing it.

OK, shows me for skimming too much.

There apparently used to be a cfree though it appears to be equivalent to free.

I upvoted rwg's comment regarding CERT's Secure Coding wiki. memset_s is the correct solution given it is part of the C11 standard.

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact