[PATCH 1/2] common/mischelp: use memset for wipememory
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.</>
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 227 bytes
Desc: not available
More information about the Gnupg-devel