Home GnuPG

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

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
rC34bb55ee36df: ecc: Support Montgomery curve for gcry_mpi_ec_mul_point.
Branches
Unknown
Tags
Unknown

Event Timeline