secmem: Fix SEGV and stat calculation.

Authored by gniibe on Jun 2 2017, 3:34 AM.

Description

secmem: Fix SEGV and stat calculation.

* src/secmem (init_pool): Care about the header size.
(_gcry_secmem_malloc_internal): Likewise.
(_gcry_secmem_malloc_internal): Use mb->size for stats.
  • GnuPG-bug-id: T3027
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details