]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Introduce a new utility function smemclr(), which memsets things to
authorSimon Tatham <anakin@pobox.com>
Sun, 22 Jul 2012 19:51:50 +0000 (19:51 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 22 Jul 2012 19:51:50 +0000 (19:51 +0000)
zero but does it in such a way that over-clever compilers hopefully
won't helpfully optimise the call away if you do it just before
freeing something or letting it go out of scope. Use this for
(hopefully) every memset whose job is to destroy sensitive data that
might otherwise be left lying around in the process's memory.

[originally from svn r9586]


No differences found