Somewhat similar as explicit_bzero as non optimisable in compiler point of view.
Details
Details
Diff Detail
Diff Detail
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Event Timeline
Comment Actions
_gcry_fast_wipememory2 should be changed to always just use explicit_memset when available:
#ifdef HAVE_EXPLICIT_MEMSET
explicit_memset (ptr, set, len);
#else
#ifdef HAVE_EXPLICIT_BZERO
if (set == 0)
{
explicit_bzero (ptr, len);
return;
}
#endif
memset_ptr (ptr, set, len);
#endif| src/misc.c | ||
|---|---|---|
| 531 | Good catch ... lazy c/p. | |
Comment Actions
Email did not get through (should use plain old text email), so I prepared patch myself. See D477, https://dev.gnupg.org/D477