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
Parents
rC5a22de904a0a: ecc: Store EdDSA session key in secure memory.
Branches
Unknown
Tags
Unknown
Tasks
T3027: gpg-agent crash on macOS Sierra triggerd by ssh