Home GnuPG

cipher: Fix possible NULL deref in call to prime generator.
bd828db70ebbUnpublished

Unpublished Commit · Learn More

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

Description

cipher: Fix possible NULL deref in call to prime generator.

* cipher/primegen.c (_gcry_generate_elg_prime): Change to return an
error code.
* cipher/dsa.c (generate): Take care of new return code.
* cipher/elgamal.c (generate): Change to return an error code.  Take
care of _gcry_generate_elg_prime return code.
(generate_using_x): Take care of _gcry_generate_elg_prime return code.
(elg_generate): Propagate return code from generate.

Note that the NULL deref may have only happened on malloc failure.

  • GnuPG-bug-id: T1699, T1700
  • Reported-by: S.K. Gupta

Details

Provenance
wernerAuthored on Aug 21 2014, 11:39 AM
Parents
rC4d8f020fce60: ecc: Support the non-standard 0x40 compression flag for EdDSA.
Branches
Unknown
Tags
Unknown

Event Timeline