From: simon Date: Sun, 22 Jul 2012 19:51:50 +0000 (+0000) Subject: Introduce a new utility function smemclr(), which memsets things to X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/dfb88efd1c9503370bee8e677bbefad6ef41df85?hp=dfb88efd1c9503370bee8e677bbefad6ef41df85 Introduce a new utility function smemclr(), which memsets things to 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. git-svn-id: svn://svn.tartarus.org/sgt/putty@9586 cda61777-01e9-0310-a592-d414129be87e ---