[PATCH] Use memzero_explicit to clear local buffers
Giel van Schijndel
me at mortis.eu
Sun Jan 4 16:05:28 MST 2015
On Sun, Jan 04, 2015 at 19:05:40 +0100, Giel van Schijndel wrote:
> When leaving a function use memzero_explicit instead of memset(0) to
> clear locally allocated/owned buffers. memset(0) may be optimized away.
>
> All of the affected buffers contain sensitive data, key material or
> derivatives of one of those two.
> ---
Forgot to:
Signed-off-by: Giel van Schijndel <me at mortis.eu>
--
Met vriendelijke groet,
With kind regards,
Giel van Schijndel
--
"Question: what do you call your programming methodology?
Answer: Faith based development. You code and then pray that it works."
-- John Spelner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20150105/e98cfb96/attachment.pgp>
More information about the samba-technical
mailing list