gpg: Don't use malloc for kek_params.
* g10/ecdh.c (pk_ecdh_default_params): Use stack for kek_params.
- GnuPG-bug-id: T5393
- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
gpg: Don't use malloc for kek_params.
Description
Details
Event TimelineComment Actions The old code using sizeof(kek_params) (which is used for log_printhex) is incorrect; the value is the size of pointer to byte. It may works for 32-bit architectures, though. |