Home GnuPG

mpi: Fix gcry_mpi_copy for NULL opaque data.
9fca46864e1bUnpublished

Unpublished Commit · Learn More

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

Description

mpi: Fix gcry_mpi_copy for NULL opaque data.

* mpi/mpiutil.c (_gcry_mpi_copy): Copy opaque only if needed.

gcry_mpi_set_opaque allows to store NULL as opaque data. Thus we also
need to take care when copying such data.

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

Details

Provenance
wernerAuthored on Apr 13 2015, 11:48 AM
Parents
rC6e31a2805c5e: Add git url to AUTHORS
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rC9fca46864e1b: mpi: Fix gcry_mpi_copy for NULL opaque data. (authored by Werner Koch <wk@gnupg.org>).Apr 13 2015, 11:48 AM