Changeset View
Changeset View
Standalone View
Standalone View
src/misc.c
Context not available. | |||||
*/ | */ | ||||
#ifdef HAVE_EXPLICIT_BZERO | #ifdef HAVE_EXPLICIT_BZERO | ||||
explicit_bzero (ptr, len); | explicit_bzero (ptr, len); | ||||
#elif defined(HAVE_EXPLICIT_MEMSET) | |||||
explicit_memset (ptr, 0, len); | |||||
#else | #else | ||||
memset_ptr (ptr, 0, len); | memset_ptr (ptr, 0, len); | ||||
#endif | #endif | ||||
Context not available. | |||||
void | void | ||||
_gcry_fast_wipememory2 (void *ptr, int set, size_t len) | _gcry_fast_wipememory2 (void *ptr, int set, size_t len) | ||||
{ | { | ||||
#ifdef HAVE_EXPLICIT_MEMSET | |||||
explicit_memset (ptr, 0, len); | |||||
jukivili: Passing zero here instead of 'set'. | |||||
devnexenUnsubmitted Not Done Inline ActionsGood catch ... lazy c/p. devnexen: Good catch ... lazy c/p. | |||||
#else | |||||
#ifdef HAVE_EXPLICIT_BZERO | #ifdef HAVE_EXPLICIT_BZERO | ||||
if (set == 0) | if (set == 0) | ||||
{ | { | ||||
Context not available. | |||||
#endif | #endif | ||||
memset_ptr (ptr, set, len); | memset_ptr (ptr, set, len); | ||||
#endif | |||||
} | } | ||||
Context not available. |
Passing zero here instead of 'set'.