Home GnuPG
Diffusion GnuPG 8a2134b8d50b

gpg: Consider that gcry_mpi_get_opaque may return NULL.
8a2134b8d50bUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

gpg: Consider that gcry_mpi_get_opaque may return NULL.

* g10/seckey-cert.c (do_check): Handle a NULL opaque MPI.

This patch extends b2d9d10 for secret keys. The problem is that we
changed the semantics so that opaque MPIs may be NULL with a bit
length. This patch is not required in GnuPG 2 because we do not use
secret keys there.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Jun 2 2015, 5:41 PM
Parents
rGb2d9d105f717: gpg: Fix segv due to NULL value stored as opaque MPI (BRANCH 2.0)
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG8a2134b8d50b: gpg: Consider that gcry_mpi_get_opaque may return NULL. (authored by Werner Koch <wk@gnupg.org>).Jun 2 2015, 5:41 PM