Home GnuPG

primegen: Fix memory leak for invalid call sequences.
8c5eee51d9a2Unpublished

Unpublished Commit · Learn More

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

Description

primegen: Fix memory leak for invalid call sequences.

* cipher/primegen.c (prime_generate_internal): Refactor generator code
to not leak memory for non-implemented feature.
(_gcry_prime_group_generator): Refactor to not leak memory for invalid
args.  Also make sure that R_G is set as soon as possible.
  • GnuPG-bug-id: T1705
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Jan 5 2015, 6:58 PM
Parents
rCdd5df198727e: doc: Update yat2m to current upstream version (GnuPG).
Branches
Unknown
Tags
Unknown