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

OpenBSD has a function called secure_bzero. All it currently does is call regular bzero, but if external compilation isn't enough to do the job, we come up with something else.

Regarding the article, I don't at all understand why the three arguments are necessary. Why would the following patch not work?

    - memset(x, 0, n);
    + memzero(x, n);



i think it's to keep the patch(es) easier to read. it certainly feels awkward.




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

Search: