Home GnuPG

secmem: Fix SEGV and stat calculation.

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

Provenance
gniibeAuthored on Jun 2 2017, 3:34 AM
wernerCommitted on Jun 2 2017, 8:36 AM
Parents
rCf9494b3f258e: ecc: Store EdDSA session key in secure memory.
Branches
Unknown
Tags
Unknown
Tasks
T3027: gpg-agent crash on macOS Sierra triggerd by ssh