_gcry_burn_stack: use memset for clearing memory
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Thu, 22 Mar 2018 19:42:23 +0000 (21:42 +0200)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Thu, 22 Mar 2018 19:42:23 +0000 (21:42 +0200)
commit3841b23c0ccb24d555b7570083bba958e3126d26
tree9ecdd0e31abb6ea65d59dc777d4878a5189013ae
parenta1127dbbada4302abf09eec90fbaceca87bfcdf0
_gcry_burn_stack: use memset for clearing memory

* src/misc.c (__gcry_burn_stack) [HAVE_VLA]: Use 'memset' for clearing
stack.
--

Patch switches stacking burning to use faster memset instead of
wipememory. Memset is accessed through volatile function pointer,
so that compiler will not optimize away the call.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
src/misc.c