Hacker Newsnew | comments | show | ask | jobs | submitlogin

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.

-----




Applications are open for YC Summer 2015

Guidelines | FAQ | Support | Lists | Bookmarklet | DMCA | Y Combinator | Apply | Contact

Search: