[PATCH 1/2] common/mischelp: use memset for wipememory
Werner Koch
wk at gnupg.org
Tue Nov 13 16:20:20 CET 2018
On Fri, 9 Nov 2018 17:48, jussi.kivilinna at iki.fi said:
> In new wipememory2 function, memset is called through volatile
> function pointer to so that compiler won't optimize away the call.
<rant>Are you sure that none of those braindead compilers removes that call
for example when inlined? They may find yet another interpreation why
it is allowed. But anyway, the old code would or is already target to
such new dis-optimization.</>
Salam-Shalom,
Werner
--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20181113/aa1c4478/attachment.sig>
More information about the Gnupg-devel
mailing list