Home GnuPG

mpi: Clear immutable flag on the result of gcry_mpi_set.
426cbc9feca0Unpublished

Unpublished Commit · Learn More

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

Description

mpi: Clear immutable flag on the result of gcry_mpi_set.

* mpi/mpiutil.c (gcry_mpi_set): Reset immutable and const flags.
* tests/mpitests.c (test_const_and_immutable): Add a test for this.

gcry_mpi_set shall behave like gcry_mpi_copy and thus reset those
special flags. Problem reported by Christian Grothoff.

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

Details

Provenance
wernerAuthored on Aug 8 2013, 3:16 PM
Parents
rCcc082642c1b0: tests: fix memory leaks.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rC426cbc9feca0: mpi: Clear immutable flag on the result of gcry_mpi_set. (authored by Werner Koch <wk@gnupg.org>).Aug 8 2013, 3:17 PM